pub enum ErrorCode {
Show 22 variants
InvalidMean = 100,
InvalidVariance = 101,
InvalidProbability = 102,
InvalidRange = 103,
InvalidShape = 104,
InvalidRate = 105,
InvalidCount = 106,
NumericalOverflow = 200,
NumericalUnderflow = 201,
NumericalInstability = 202,
InvalidLogDensity = 203,
ModelExecutionFailed = 300,
AddressConflict = 301,
UnexpectedModelStructure = 302,
InferenceConvergenceFailed = 400,
InsufficientSamples = 401,
InvalidInferenceConfig = 402,
TraceAddressNotFound = 500,
TraceCorrupted = 501,
TraceReplayFailed = 502,
TypeMismatch = 600,
UnsupportedType = 601,
}Expand description
Error codes for programmatic error handling and categorization.
Variants§
InvalidMean = 100
InvalidVariance = 101
InvalidProbability = 102
InvalidRange = 103
InvalidShape = 104
InvalidRate = 105
InvalidCount = 106
NumericalOverflow = 200
NumericalUnderflow = 201
NumericalInstability = 202
InvalidLogDensity = 203
ModelExecutionFailed = 300
AddressConflict = 301
UnexpectedModelStructure = 302
InferenceConvergenceFailed = 400
InsufficientSamples = 401
InvalidInferenceConfig = 402
TraceAddressNotFound = 500
TraceCorrupted = 501
TraceReplayFailed = 502
TypeMismatch = 600
UnsupportedType = 601
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description of the error code.
Sourcepub fn category(&self) -> ErrorCategory
pub fn category(&self) -> ErrorCategory
Get the category of the error (first digit of the code).
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more