Skip to main content

tensor4all_tcicore/matrixluci/
error.rs

1//! Error types for matrixluci.
2
3use thiserror::Error;
4
5/// Errors that can occur during matrix LUCI operations.
6#[derive(Debug, Error)]
7pub enum MatrixLuciError {
8    /// Invalid argument.
9    #[error("Invalid argument: {message}")]
10    InvalidArgument {
11        /// Description of the invalid argument.
12        message: String,
13    },
14    /// Singular pivot block encountered during lazy residual evaluation.
15    #[error("Singular pivot block encountered")]
16    SingularPivotBlock,
17}
18
19/// Result type for matrixluci operations.
20pub type Result<T> = std::result::Result<T, MatrixLuciError>;