1use std::error::Error;
2use std::fmt::Display;
3
4#[derive(Debug)]
5pub struct SyndecodeError(pub String);
6
7impl Display for SyndecodeError {
8 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9 write!(f, "{}", self.0)
10 }
11}
12
13impl Error for SyndecodeError {}