Skip to main content

ErrorCode

Trait ErrorCode 

Source
pub trait ErrorCode {
    // Provided method
    fn error_code(&self) -> i32 { ... }
}
Expand description

Legacy numeric error code.

New protocol-facing code should use the stable identity generated by OrionError (identity = "biz.xxx", category = ...) as the machine key. This trait remains for compatibility with older numeric-code integrations and built-in UvsReason helpers.

Provided Methods§

Source

fn error_code(&self) -> i32

Implementors§