concision_core/params/
error.rs

1/*
2    Appellation: error <module>
3    Contrib: @FL03
4*/
5
6#[derive(Debug, thiserror::Error)]
7pub enum ParamsError {
8    #[error("Dimension Error: {0}")]
9    DimensionalError(String),
10    #[error("Invalid biases")]
11    InvalidBiases,
12    #[error("Invalid weights")]
13    InvalidWeights,
14    #[error("Invalid input shape")]
15    InvalidInputShape,
16    #[error("Invalid output shape")]
17    InvalidOutputShape,
18    #[error("Invalid parameter: {0}")]
19    InvalidParameter(String),
20    #[error("Invalid parameter type")]
21    InvalidParameterType,
22    #[error("Invalid parameter value")]
23    InvalidParameterValue,
24}