pub enum Neo3Error {
Crypto(CryptoError),
Wallet(WalletError),
Network(NetworkError),
Transaction(TransactionError),
Contract(ContractError),
Serialization(SerializationError),
Config(String),
Generic {
message: String,
},
UnsupportedOperation(String),
}
Expand description
Comprehensive error types for the Neo3 SDK
Variants§
Crypto(CryptoError)
Cryptographic operation errors
Wallet(WalletError)
Wallet operation errors
Network(NetworkError)
Network/RPC communication errors
Transaction(TransactionError)
Transaction building/validation errors
Contract(ContractError)
Smart contract interaction errors
Serialization(SerializationError)
Serialization/deserialization errors
Config(String)
Configuration errors
Generic
Generic errors with context
UnsupportedOperation(String)
Unsupported operation error
Trait Implementations§
Source§impl Error for Neo3Error
impl Error for Neo3Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ContractError> for Neo3Error
impl From<ContractError> for Neo3Error
Source§fn from(source: ContractError) -> Self
fn from(source: ContractError) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for Neo3Error
impl From<CryptoError> for Neo3Error
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for Neo3Error
impl From<NetworkError> for Neo3Error
Source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<SerializationError> for Neo3Error
impl From<SerializationError> for Neo3Error
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for Neo3Error
impl From<TransactionError> for Neo3Error
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<WalletError> for Neo3Error
impl From<WalletError> for Neo3Error
Source§fn from(source: WalletError) -> Self
fn from(source: WalletError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Neo3Error
impl !RefUnwindSafe for Neo3Error
impl Send for Neo3Error
impl Sync for Neo3Error
impl Unpin for Neo3Error
impl !UnwindSafe for Neo3Error
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.