pub enum GenApiError {
Show 15 variants
NodeNotFound(String),
Type(String),
Access(String),
Range(String),
Unavailable(String),
Io(String),
Parse(String),
ExprParse {
name: String,
msg: String,
},
ExprEval {
name: String,
msg: String,
},
UnknownVariable {
name: String,
var: String,
},
EnumValueUnknown {
node: String,
value: i64,
},
EnumNoSuchEntry {
node: String,
entry: String,
},
BadIndirectAddress {
name: String,
addr: i64,
},
BitfieldOutOfRange {
name: String,
bit_offset: u16,
bit_length: u16,
len: usize,
},
ValueTooWide {
name: String,
value: i64,
bit_length: u16,
},
}Expand description
Error type produced by GenApi operations.
Variants§
NodeNotFound(String)
The requested node does not exist in the nodemap.
Type(String)
The node exists but has a different type.
Access(String)
The node access mode forbids the attempted operation.
Range(String)
The provided value violates the limits declared by the node.
The node is currently hidden by selector state.
Io(String)
Underlying register IO failed.
Parse(String)
Node metadata or conversion failed.
ExprParse
Parsing a SwissKnife expression failed.
ExprEval
Evaluating a SwissKnife expression failed at runtime.
UnknownVariable
A SwissKnife expression referenced an unknown variable.
EnumValueUnknown
Raw register value did not correspond to any enum entry.
EnumNoSuchEntry
Attempted to select an enum entry that does not exist.
BadIndirectAddress
Indirect addressing resolved to an invalid register.
BitfieldOutOfRange
Bitfield metadata exceeded the backing register width.
ValueTooWide
Provided value does not fit into the declared bitfield.