mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
13 lines
301 B
Rust
13 lines
301 B
Rust
|
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 }
|
||
|
}
|