pub enum ContractError {
Show 16 variants
InvalidNeoName(String),
InvalidNeoNameServiceRoot(String),
UnexpectedReturnType(String),
UnresolvableDomainName(String),
DomainNameNotAvailable(String),
DomainNameNotRegistered(String),
UnsupportedOperation(String),
RuntimeError(String),
InvalidStateError(String),
InvalidArgError(String),
ProviderError(ProviderError),
ProviderNotSet(String),
InvocationFailed(String),
InvalidResponse(String),
InvalidAccount(String),
InvalidScriptHash(String),
}
Expand description
Custom error type for contract-related errors
Variants§
InvalidNeoName(String)
Error indicating an invalid Neo name
InvalidNeoNameServiceRoot(String)
Error indicating an invalid Neo Name Service root
UnexpectedReturnType(String)
Error indicating an unexpected return type
UnresolvableDomainName(String)
Error indicating an unresolvable domain name
DomainNameNotAvailable(String)
Error indicating that a domain name is not available
DomainNameNotRegistered(String)
Error indicating that a domain name is not registered
UnsupportedOperation(String)
Error indicating an unsupported operation
RuntimeError(String)
Error indicating a runtime error
InvalidStateError(String)
Error indicating an invalid state error
InvalidArgError(String)
Error indicating an invalid argument error
ProviderError(ProviderError)
Error indicating a provider error, transparently wrapped
ProviderNotSet(String)
Error indicating that a provider is not set
InvocationFailed(String)
Error indicating that an invocation failed
InvalidResponse(String)
Error indicating an invalid response
InvalidAccount(String)
Error indicating an invalid account
InvalidScriptHash(String)
Error indicating an invalid script hash
Trait Implementations§
Source§impl Debug for ContractError
impl Debug for ContractError
Source§impl Display for ContractError
impl Display for ContractError
Source§impl Error for ContractError
impl Error for ContractError
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<ProviderError> for ContractError
impl From<ProviderError> for ContractError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Auto Trait Implementations§
impl Freeze for ContractError
impl !RefUnwindSafe for ContractError
impl Send for ContractError
impl Sync for ContractError
impl Unpin for ContractError
impl !UnwindSafe for ContractError
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
§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>
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 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.