Enum ethcore::error::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Database(ErrorKind), Util(ErrorKind), Import(ImportErrorKind), Io(IoError), StdIo(Error), Trie(TrieError), Execution(ExecutionError), Block(BlockError), Transaction(TransactionError), Snappy(InvalidInput), Engine(EngineError), Ethkey(EthkeyError), Client(ClientError), Snapshot(SnapshotError), AccountProvider(AccountsError), PowHashInvalid, PowInvalid, UnknownEngineName(String), Decoder(DecoderError), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Database(ErrorKind)
Database error.
Util(ErrorKind)
Error concerning a utility
Import(ImportErrorKind)
Error concerning block import.
Io(IoError)
Io create error
StdIo(Error)
Error concerning the Rust standard library's IO subsystem.
Trie(TrieError)
Error concerning TrieDBs.
Execution(ExecutionError)
Error concerning EVM code execution.
Block(BlockError)
Error concerning block processing.
Transaction(TransactionError)
Error concerning transaction processing.
Snappy(InvalidInput)
Snappy error.
Engine(EngineError)
Consensus vote error.
Ethkey(EthkeyError)
Ethkey error.
Client(ClientError)
Client configuration error.
Snapshot(SnapshotError)
Snapshot error.
AccountProvider(AccountsError)
Account Provider error
PowHashInvalid
PoW hash is invalid or out of date.
PowInvalid
The value of the nonce or mishash is invalid.
UnknownEngineName(String)
Unknown engine given
Decoder(DecoderError)
RLP decoding errors
Methods
impl ErrorKind
impl ErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Error
impl Debug for ErrorKind
impl Debug for ErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ErrorKind
impl Display for ErrorKind
impl From<ErrorKind> for ErrorKind
impl From<ErrorKind> for ErrorKind
Database error.
fn from(e: ErrorKind) -> Self
fn from(e: ErrorKind) -> Self
Performs the conversion.
impl From<ErrorKind> for ErrorKind
impl From<ErrorKind> for ErrorKind
Error concerning a utility
fn from(e: ErrorKind) -> Self
fn from(e: ErrorKind) -> Self
Performs the conversion.
impl From<ImportErrorKind> for ErrorKind
impl From<ImportErrorKind> for ErrorKind
Error concerning block import.
fn from(e: ImportErrorKind) -> Self
fn from(e: ImportErrorKind) -> Self
Performs the conversion.
impl<'a> From<&'a str> for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
impl From<Error> for ErrorKind