base32_fs/
error.rs

1/// BASE32 decode error.
2///
3/// Either the length is wrong or some characters are invalid.
4#[derive(Debug)]
5pub struct DecodeError;
6
7#[cfg(feature = "std")]
8#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
9impl std::error::Error for DecodeError {}
10
11impl core::fmt::Display for DecodeError {
12    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
13        f.write_str("BASE32 decode error")
14    }
15}