Skip to main content

MARSHAL_ERROR_CODE

Constant MARSHAL_ERROR_CODE 

Source
pub const MARSHAL_ERROR_CODE: i32 = -3;
Expand description

The reserved error code reporting a marshalling failure: an argument that could not be lifted at the boundary (a null pointer with a non-zero length, a non-UTF-8 string, an out-of-range enum discriminant, or a malformed value buffer).

Both sides are generated from the same IDL, so a marshalling failure is a producer/consumer contract violation, not a domain error; wrappers surface it through the same trap channel as PANIC_ERROR_CODE.