AppFlowy/rust-lib/flowy-ot/src/errors.rs

13 lines
301 B
Rust
Raw Normal View History

2021-07-31 12:53:45 +00:00
use std::{error::Error, fmt};
#[derive(Clone, Debug)]
pub struct OTError;
impl fmt::Display for OTError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "incompatible lengths") }
}
impl Error for OTError {
fn source(&self) -> Option<&(dyn Error + 'static)> { None }
}