macho_unwind_info/
error.rs1#[derive(thiserror::Error, Debug, Clone, Copy, PartialEq, Eq)]
3pub enum Error {
4 #[error("Read error: {0}")]
8 ReadError(#[from] ReadError),
9
10 #[error("The page entry's first_address didn't match the address of its first function")]
16 InvalidPageEntryFirstAddress,
17
18 #[error("Invalid page kind")]
20 InvalidPageKind,
21
22 #[error("Unexpected sentinel page")]
27 UnexpectedSentinelPage,
28}
29
30#[derive(thiserror::Error, Debug, Clone, Copy, PartialEq, Eq)]
33pub enum ReadError {
34 #[error("Could not read CompactUnwindInfoHeader")]
35 Header,
36
37 #[error("Could not read global opcodes")]
38 GlobalOpcodes,
39
40 #[error("Could not read pages")]
41 Pages,
42
43 #[error("Could not read RegularPage")]
44 RegularPage,
45
46 #[error("Could not read RegularPage functions")]
47 RegularPageFunctions,
48
49 #[error("Could not read CompressedPage")]
50 CompressedPage,
51
52 #[error("Could not read CompressedPage functions")]
53 CompressedPageFunctions,
54
55 #[error("Could not read local opcodes")]
56 LocalOpcodes,
57
58 #[error("Could not read page kind")]
59 PageKind,
60}