pub enum ResolveError {
MissingArgumentDescriptor {
argument: String,
},
TruncatedArgument {
argument: String,
},
InvalidArgumentDescriptor {
argument: String,
reason: &'static str,
},
UnsupportedSelectorType {
argument: String,
ty: String,
},
SelectorOutOfRange {
argument: String,
value: u32,
count: u32,
},
InvalidRule {
segment: String,
reason: &'static str,
},
OverlappingRules {
first_segment: String,
second_segment: String,
},
EnvelopeNotStaticallyAuthorized {
account_index: u8,
segment: String,
},
MissingSelectorValue {
argument: String,
argument_index: u8,
},
InconsistentSelectorIdentity {
argument: String,
argument_index: u8,
},
}Expand description
Why an invocation-specific effect contract could not be resolved.
Variants§
MissingArgumentDescriptor
A parametric selector has no matching argument descriptor.
TruncatedArgument
The instruction payload ended while decoding an argument.
InvalidArgumentDescriptor
An argument descriptor is internally inconsistent.
UnsupportedSelectorType
Exact-cell selectors are intentionally restricted to fixed unsigned integer wire types so off-chain and on-chain casts cannot diverge.
SelectorOutOfRange
A decoded selector is outside the declared cell count.
InvalidRule
A parametric rule is malformed or overflows its offset arithmetic.
OverlappingRules
Two rules on the same account govern overlapping envelopes. Hopper’s runtime gives the first rule precedence, so accepting a set union here would be unsound.
EnvelopeNotStaticallyAuthorized
A rule could broaden authority beyond the conservative static set.
MissingSelectorValue
Caller supplied fewer already-decoded compact selectors than the rule references.
InconsistentSelectorIdentity
Two rules disagree about the name/index identity of one selector.
Trait Implementations§
Source§impl Clone for ResolveError
impl Clone for ResolveError
Source§fn clone(&self) -> ResolveError
fn clone(&self) -> ResolveError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
impl Eq for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()