ReadonlyerrorThe error kind for programmatic type checking
ReadonlyerrorStructured error data matching Rust's error variants
StaticinvalidCreate an invalid size error.
Rust equivalent: Error::InvalidSize { data_type, expected, actual }
The expected size
The actual size received
StaticinvalidCreate an invalid size error with a data type name.
Rust equivalent: Error::invalid_size(data_type, expected, actual)
The name of the data type
The expected size
The actual size received
StaticinvalidCreate an invalid data error.
Description of what's invalid
StaticinvalidCreate an invalid data error with a data type name.
Rust equivalent: Error::invalid_data(data_type, reason)
The name of the data type
The reason the data is invalid
StaticdataCreate a data too short error.
Rust equivalent: Error::data_too_short(data_type, minimum, actual)
The name of the data type
The minimum required size
The actual size received
StaticinvalidCreate an invalid format error.
Description of the format error
StaticinvalidCreate an invalid input error.
Description of the invalid input
StaticcryptoCreate a cryptographic operation failed error.
Rust equivalent: Error::crypto(msg)
Description of the failure
StaticcryptoCreate a crypto error.
Rust equivalent: Error::Crypto(msg)
Description of the failure
StaticpostCreate a post-quantum cryptography error.
Rust equivalent: Error::post_quantum(msg)
Description of the failure
StaticlevelCreate a signature level mismatch error.
Rust equivalent: Error::LevelMismatch
StaticcborCreate a CBOR error.
Rust equivalent: Error::Cbor(err)
Description of the CBOR error
StatichexCreate a hex decoding error.
Rust equivalent: Error::Hex(err)
Description of the hex error
Staticutf8Create a UTF-8 conversion error.
Rust equivalent: Error::Utf8(err)
Description of the UTF-8 error
StaticcompressionCreate a compression error.
Rust equivalent: Error::compression(msg)
Description of the compression error
StaticuriCreate a URI parsing error.
Rust equivalent: Error::Uri(err)
Description of the URI error
StaticsskrCreate an SSKR error.
Rust equivalent: Error::Sskr(err)
Description of the SSKR error
StaticsshCreate an SSH operation error.
Rust equivalent: Error::ssh(msg)
Description of the SSH error
StaticsshCreate an SSH agent error.
Rust equivalent: Error::ssh_agent(msg)
Description of the SSH agent error
StaticsshCreate an SSH agent client error.
Rust equivalent: Error::ssh_agent_client(msg)
Description of the SSH agent client error
StaticenvCreate an environment variable error.
Rust equivalent: Error::Env(err)
Description of the environment error
StaticgeneralCreate a general error with a custom message.
Rust equivalent: Error::general(msg) / Error::General(msg)
The error message
Check if this error is of a specific kind.
The error kind to check
Check if this is an InvalidSize error.
Check if this is an InvalidData error.
Check if this is a DataTooShort error.
Check if this is a Crypto error.
Check if this is a Cbor error.
Check if this is an Sskr error.
Check if this is an Ssh error.
Check if this is a Uri error.
Check if this is a Compression error.
Check if this is a PostQuantum error.
Check if this is a LevelMismatch error.
Check if this is an SshAgent error.
Check if this is a Hex error.
Check if this is a Utf8 error.
Check if this is an Env error.
Check if this is an SshAgentClient error.
Check if this is a General error.
Error type for cryptographic and component operations.
This class provides full structural parity with the Rust Error enum, including:
errorKindproperty for programmatic error type checkingerrorDatafor accessing error-specific fields