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 UnifiedReason helpers.
Provided Methods§
fn error_code(&self) -> i32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".