Skip to main content

Module error_codes

Module error_codes 

Source
Expand description

Error codes returned by host functions.

Negative values indicate errors, non-negative values indicate success (usually the number of bytes read/written).

Constantsยง

ERR_BUFFER_TOO_SMALL
Buffer too small to hold the data.
ERR_CONTEXT_TOO_LARGE
Context too large (exceeds i32::MAX).
ERR_INVALID_PARAM
Invalid parameter (e.g., negative length).
ERR_NOT_IN_PROCESS
Called outside of a process() context.
ERR_SECRET_NOT_FOUND
Secret not found.
ERR_STORAGE_FAILED
Storage operation failed.
SUCCESS
Operation succeeded.