Enum casper_client::Error[][src]

pub enum Error {
Show 26 variants FailedToParseKey, 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, }, DeploySizeTooLarge(ExcessiveSizeDeployError), FailedToGetResponse(Error), FailedToParseResponse(Error), FileAlreadyExists(PathBuf), UnsupportedAlgorithm(String), ResponseIsError(Error), InvalidJson(Error), InvalidRpcResponse(JsonRpc), FailedSending(JsonRpc), IoError { context: String, error: Error, }, ToBytesError(ToBytesError), CryptoError { context: &'static str, error: CryptoError, }, InvalidCLValue(String), InvalidArgument { context: &'static str, error: String, }, ConflictingArguments { context: &'static str, args: Vec<String>, }, InvalidResponse(ValidateResponseError), FailedToParseDictionaryIdentifier, FailedToParseStateIdentifier, FFISetupNotCalled, FFIPtrNullButRequired(&'static str),
}
Expand description

Error that can be returned by casper-client.

Variants

FailedToParseKey

Failed to parse a Key from a formatted string.

FailedToParseURef

Failed to parse a URef from a formatted string.

Fields of FailedToParseURef

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: URefFromStrError

The actual error raised.

FailedToParseInt

Failed to parse an integer from a string.

Fields of FailedToParseInt

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: ParseIntError

The actual error raised.

FailedToParseTimeDiff

Failed to parse a TimeDiff from a formatted string.

Fields of FailedToParseTimeDiff

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: DurationError

The actual error raised.

FailedToParseTimestamp

Failed to parse a Timestamp from a formatted string.

Fields of FailedToParseTimestamp

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: TimestampError

The actual error raised.

FailedToParseUint

Failed to parse a U128, U256 or U512 from a string.

Fields of FailedToParseUint

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: UIntParseError

The actual error raised.

DeploySizeTooLarge(ExcessiveSizeDeployError)

Deploy size too large.

Tuple Fields of DeploySizeTooLarge

0: ExcessiveSizeDeployError
FailedToGetResponse(Error)

Failed to get a response from the node.

Tuple Fields of FailedToGetResponse

0: Error
FailedToParseResponse(Error)

Failed to parse the response from the node.

Tuple Fields of FailedToParseResponse

0: Error
FileAlreadyExists(PathBuf)

Failed to create new file because it already exists.

Tuple Fields of FileAlreadyExists

0: PathBuf
UnsupportedAlgorithm(String)

Unsupported keygen algorithm.

Tuple Fields of UnsupportedAlgorithm

0: String
ResponseIsError(Error)

JSON-RPC error returned from the node.

Tuple Fields of ResponseIsError

0: Error
InvalidJson(Error)

Invalid JSON returned from the node.

Tuple Fields of InvalidJson

0: Error
InvalidRpcResponse(JsonRpc)

Invalid response returned from the node.

Tuple Fields of InvalidRpcResponse

0: JsonRpc
FailedSending(JsonRpc)

Failed to send the request to the node.

Tuple Fields of FailedSending

0: JsonRpc
IoError

Context-adding wrapper for std::io::Error.

Fields of IoError

context: String

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: Error

std::io::Error raised during the operation in question.

ToBytesError(ToBytesError)

Failed to serialize to bytes.

Tuple Fields of ToBytesError

0: ToBytesError
CryptoError

Cryptographic error.

Fields of CryptoError

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: CryptoError

Underlying crypto error.

InvalidCLValue(String)

Invalid CLValue.

Tuple Fields of InvalidCLValue

0: String
InvalidArgument

Invalid argument.

Fields of InvalidArgument

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

error: String

An error message.

ConflictingArguments

Conflicting arguments.

Fields of ConflictingArguments

context: &'static str

Contextual description of where this error occurred including relevant paths, filenames, etc.

args: Vec<String>

Arguments passed, with their values.

InvalidResponse(ValidateResponseError)

Failed to validate response.

Tuple Fields of InvalidResponse

0: ValidateResponseError
FailedToParseDictionaryIdentifier

Failed to create a DictionaryIdentifier

FailedToParseStateIdentifier

Failed to identify the hash as either block hash or state root hash.

FFISetupNotCalled

Must call FFI’s setup function prior to making FFI calls.

FFIPtrNullButRequired(&'static str)

Must pass valid pointer values to FFI calls.

Tuple Fields of FFIPtrNullButRequired

0: &'static str

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into a target type. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Converts the given value to a String. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more