lrwn_filters/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5    #[error("DevAddrPrefix must be in the form 00000000/0")]
6    DevAddrPrefixFormat,
7
8    #[error("EuiPrefix must be in the form 0000000000000000/0")]
9    EuiPrefixFormat,
10
11    #[error("DevAddrPrefix max prefix size is 32")]
12    DevAddrPrefixSize,
13
14    #[error("EuiPrefix max prefix size is 64")]
15    EuiPrefixSize,
16
17    #[error(transparent)]
18    FromHexError(#[from] hex::FromHexError),
19}