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.