stellar_strkey/error.rs
1#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Debug)]
2pub enum DecodeError {
3 // TODO: Add meaningful errors for each problem that can occur.
4 Invalid,
5}
6
7impl core::fmt::Display for DecodeError {
8 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
9 match self {
10 DecodeError::Invalid {} => f.write_str("the strkey is invalid"),
11 }
12 }
13}
14
15impl core::error::Error for DecodeError {}