blob: f5309e1d52840208b7da3c653e68ad171c4ca28d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use std::{error::Error, fmt::Display};
#[derive(Debug, PartialEq, Eq)]
pub struct ParseMatrixError;
impl Display for ParseMatrixError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Matrix parsing error")
}
}
impl Error for ParseMatrixError {}
#[derive(Debug)]
pub struct MatrixSetValueError;
impl Error for MatrixSetValueError {}
impl Display for MatrixSetValueError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Matrix set value error")
}
}
|