pub enum CliError {
Show 16 variants
FailedToParseKey {
context: &'static str,
error: KeyFromStrError,
},
FailedToParsePublicKey {
context: String,
error: Error,
},
FailedToParseAccountHash {
context: &'static str,
error: FromStrError,
},
FailedToParseURef {
context: &'static str,
error: URefFromStrError,
},
FailedToParseInt {
context: &'static str,
error: ParseIntError,
},
FailedToParseTimeDiff {
context: &'static str,
error: DurationError,
},
FailedToParseTimestamp {
context: &'static str,
error: TimestampError,
},
FailedToParseUint {
context: &'static str,
error: UIntParseError,
},
FailedToParseDigest {
context: &'static str,
error: Error,
},
FailedToParseStateIdentifier,
ConflictingArguments {
context: &'static str,
args: Vec<String>,
},
InvalidCLValue(String),
InvalidArgument {
context: &'static str,
error: String,
},
FailedToParseJsonArgs(Error),
JsonArgs(JsonArgsError),
Core(Error),
}Expand description
Error that can be returned by the cli API.
Variants§
FailedToParseKey
Failed to parse a Key from a formatted string.
Fields
error: KeyFromStrErrorThe actual error raised.
FailedToParsePublicKey
Failed to parse a PublicKey from a formatted string.
Fields
FailedToParseAccountHash
Failed to parse an AccountHash from a formatted string.
Fields
error: FromStrErrorThe actual error raised.
FailedToParseURef
Failed to parse a URef from a formatted string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: URefFromStrErrorThe actual error raised.
FailedToParseInt
Failed to parse an integer from a string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: ParseIntErrorThe actual error raised.
FailedToParseTimeDiff
Failed to parse a TimeDiff from a formatted string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: DurationErrorThe actual error raised.
FailedToParseTimestamp
Failed to parse a Timestamp from a formatted string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: TimestampErrorThe actual error raised.
FailedToParseUint
Failed to parse a U128, U256 or U512 from a string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: UIntParseErrorThe actual error raised.
FailedToParseDigest
Failed to parse a Digest from a string.
Fields
FailedToParseStateIdentifier
Failed to create a GlobalStateIdentifier.
ConflictingArguments
Conflicting arguments.
Fields
InvalidCLValue(String)
Invalid CLValue.
InvalidArgument
Invalid argument.
Fields
FailedToParseJsonArgs(Error)
Error while parsing the json-args from a string to JSON.
JsonArgs(JsonArgsError)
Error while building a NamedArg from parsed JSON input.
Core(Error)
Core error.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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
Source§impl From<CLValueError> for CliError
impl From<CLValueError> for CliError
Source§fn from(error: CLValueError) -> Self
fn from(error: CLValueError) -> Self
Auto Trait Implementations§
impl Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl !UnwindSafe for CliError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PipeAsRef for T
impl<T> PipeAsRef for T
Source§impl<T> PipeBorrow for T
impl<T> PipeBorrow for T
Source§impl<T> PipeDeref for T
impl<T> PipeDeref for T
Source§impl<T> PipeRef for T
impl<T> PipeRef for T
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
fn tap<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
Source§fn tap_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
fn tap_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
tap in debug builds, and does nothing in release builds.Source§fn tap_mut<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
fn tap_mut<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
Source§fn tap_mut_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
fn tap_mut_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
tap_mut in debug builds, and does nothing in release builds.Source§impl<T, U> TapAsRef<U> for Twhere
U: ?Sized,
impl<T, U> TapAsRef<U> for Twhere
U: ?Sized,
Source§fn tap_ref<F, R>(self, func: F) -> Self
fn tap_ref<F, R>(self, func: F) -> Self
Source§fn tap_ref_dbg<F, R>(self, func: F) -> Self
fn tap_ref_dbg<F, R>(self, func: F) -> Self
tap_ref in debug builds, and does nothing in release builds.Source§fn tap_ref_mut<F, R>(self, func: F) -> Self
fn tap_ref_mut<F, R>(self, func: F) -> Self
Source§impl<T, U> TapBorrow<U> for Twhere
U: ?Sized,
impl<T, U> TapBorrow<U> for Twhere
U: ?Sized,
Source§fn tap_borrow<F, R>(self, func: F) -> Self
fn tap_borrow<F, R>(self, func: F) -> Self
Source§fn tap_borrow_dbg<F, R>(self, func: F) -> Self
fn tap_borrow_dbg<F, R>(self, func: F) -> Self
tap_borrow in debug builds, and does nothing in release builds.Source§fn tap_borrow_mut<F, R>(self, func: F) -> Self
fn tap_borrow_mut<F, R>(self, func: F) -> Self
Source§impl<T> TapDeref for T
impl<T> TapDeref for T
Source§fn tap_deref_dbg<F, R>(self, func: F) -> Self
fn tap_deref_dbg<F, R>(self, func: F) -> Self
tap_deref in debug builds, and does nothing in release builds.Source§fn tap_deref_mut<F, R>(self, func: F) -> Self
fn tap_deref_mut<F, R>(self, func: F) -> Self
self for modification.