Skip to main content

PANIC_ERROR_CODE

Constant PANIC_ERROR_CODE 

Source
pub const PANIC_ERROR_CODE: i32 = -2;
Expand description

The reserved error code reporting a producer panic.

Generated thunks wrap the producer call in catch_unwind; a panic is reported through out_err with this code so the consumer can distinguish “the producer has a bug” from any declared domain error. Validation rejects error domains that try to claim a reserved code (0, which means success, or any negative value).