Module error_codes

Module error_codes 

Source

Constants§

BUFFER_TOO_SMALL
The provided buffer is too small to hold the requested data.
DATA_FIELD_TOO_LARGE
The data field is too large to be processed.
EMPTY_SLOT
The specified slot did not contain any slotted data (i.e., is empty).
FIELD_NOT_FOUND
The requested serialized field could not be found in the specified object.
INDEX_OUT_OF_BOUNDS
The specified index is outside the valid bounds of the array or collection.
INTERNAL_ERROR
Reserved for internal invariant trips, generally unrelated to inputs.
INVALID_ACCOUNT
The provided account identifier is invalid.
INVALID_DECODING
An error occurred while decoding serialized data.
INVALID_FIELD
The specified field identifier is invalid or not recognized.
INVALID_FLOAT_COMPUTATION
An error occurred during floating-point computation.
INVALID_FLOAT_INPUT
The input provided for floating-point parsing is malformed.
INVALID_PARAMS
One or more of the parameters provided to the API are invalid.
LEDGER_OBJ_NOT_FOUND
The requested ledger object could not be found.
LOCATOR_MALFORMED
The provided locator string is malformed or invalid.
NOT_LEAF_FIELD
The specified field is not a leaf field and cannot be accessed directly.
NO_ARRAY
The API was asked to assume the object under analysis is an STArray but it was not.
NO_MEM_EXPORTED
No memory has been exported by the WebAssembly module.
POINTER_OUT_OF_BOUNDS
A pointer or buffer length provided as a parameter described memory outside the allowed memory region.
SLOTS_FULL
No free slots are available for allocation.
SLOT_OUT_RANGE
The specified slot number is outside the valid range.

Functions§

match_result_code
Evaluates a result code and executes a closure on success (result_code > 0).
match_result_code_optional
Evaluates a result code and executes a closure on success, handling optional return values.
match_result_code_with_expected_bytes
Evaluates a result code against an expected number of bytes and executes a closure on exact match.
match_result_code_with_expected_bytes_optional
Evaluates a result code against expected bytes with optional field handling.