isMessagePackerErrorThatRequiresNewCandidate
Identifies whether an error thrown whilst packing instructions into a transaction message means that the message cannot take the instruction(s) and that a new candidate message is required.
This is the set of errors the transaction planner treats as "try another message": the message is too large, holds too many instructions, references too many accounts or signers, or was rejected by a MessagePacker for a custom reason. Any other error is unexpected and should propagate.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
error is MessagePackerErrorThatRequiresNewCandidate