1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#[derive(Debug, Copy, Clone, thiserror::Error)]
pub enum Error {
#[error("cell underflow")]
CellUnderflow,
#[error("cell overflow")]
CellOverflow,
#[error("pruned branch access")]
PrunedBranchAccess,
}
#[derive(Debug, Copy, Clone, thiserror::Error)]
pub enum ParseAddrError {
#[error("cannot parse address from an empty string")]
Empty,
#[error("workchain id is too large to fit in target type")]
InvalidWorkchain,
#[error("cannot parse account id")]
InvalidAccountId,
#[error("unexpected address part")]
UnexpectedPart,
}