pub enum CliError {
Show 28 variants
FailedToParseKey {
context: &'static str,
error: KeyFromStrError,
},
FailedToParsePublicKey {
context: String,
error: Error,
},
FailedToParseAccountHash {
context: &'static str,
error: FromStrError,
},
FailedToParseAddressableEntityHash {
context: &'static str,
error: FromStrError,
},
FailedToParseURef {
context: &'static str,
error: URefFromStrError,
},
FailedToParseInt {
context: &'static str,
error: ParseIntError,
},
FailedToParseBool {
context: &'static str,
error: ParseBoolError,
},
FailedToParseDec {
context: &'static str,
error: FromDecStrErr,
},
FailedToParseTimeDiff {
context: &'static str,
error: DurationError,
},
FailedToParseTimestamp {
context: &'static str,
error: TimestampError,
},
FailedToParseUint {
context: &'static str,
error: UIntParseError,
},
FailedToParseDigest {
context: &'static str,
error: DigestError,
},
FailedToParseStateIdentifier,
ConflictingArguments {
context: String,
args: Vec<String>,
},
InvalidCLValue(String),
InvalidArgument {
context: &'static str,
error: String,
},
FailedToParseJsonArgs(Error),
JsonArgs(JsonArgsError),
Core(Error),
FailedToParsePackageAddr,
FailedToParseTransferTarget,
FailedToParseValidatorPublicKey,
FailedToParseBase16(DecodeError),
UnexpectedTransactionArgsVariant,
FailedToGetAuctionState,
ReducedStakeBelowMinAmount,
FailedToParseChainspecBytes,
MissingMajorVersion,
}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.
FailedToParseAddressableEntityHash
Failed to parse an casper_types::AddressableEntityHash 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.
FailedToParseBool
Failed to parse a bool from a string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: ParseBoolErrorThe actual error raised.
FailedToParseDec
Failed to parse an integer from a string.
Fields
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: FromDecStrErrThe 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
context: &'static strContextual description of where this error occurred including relevant paths, filenames, etc.
error: DigestErrorThe actual error raised.
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.
FailedToParsePackageAddr
Failed to parse a package address
FailedToParseTransferTarget
Failed to parse a transfer target
FailedToParseValidatorPublicKey
Failed to parse a validator public key.
FailedToParseBase16(DecodeError)
Failed to parse base16 bytes.
UnexpectedTransactionArgsVariant
Unexpected transaction args variant.
FailedToGetAuctionState
Failed to get auction info to determine validator stake.
ReducedStakeBelowMinAmount
Attempting to withdraw bid will reduce stake below the minimum amount.
FailedToParseChainspecBytes
Failed to parse the chainspec as raw bytes.
MissingMajorVersion
Missing major version.
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
Source§impl From<DecodeError> for CliError
impl From<DecodeError> for CliError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> 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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.