taba/error.rs
1use core::fmt;
2
3/// Failed to serialize taba script input.
4#[derive(Debug)]
5pub struct Error(pub(crate) serde_json::Error);
6
7impl fmt::Display for Error {
8 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9 write!(f, "failed taba script input serialization: {}", self.0)
10 }
11}
12
13impl core::error::Error for Error {}