Enum near_workspaces::error::ErrorKind
source · #[non_exhaustive]
pub enum ErrorKind {
Rpc(RpcErrorCode),
Execution,
Sandbox(SandboxErrorCode),
Io,
DataConversion,
Other,
}Expand description
A list specifying general categories of NEAR workspace error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rpc(RpcErrorCode)
An error occurred while performing an RPC request.
Execution
An error occurred while processing a transaction.
Sandbox(SandboxErrorCode)
An error having to do with running sandbox.
Io
An error from performing IO.
DataConversion
An error from converting data.
Other
An error that cannot be categorized into the other error kinds.
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<RpcErrorCode> for ErrorKind
impl From<RpcErrorCode> for ErrorKind
source§fn from(source: RpcErrorCode) -> Self
fn from(source: RpcErrorCode) -> Self
Converts to this type from the input type.
source§impl From<SandboxErrorCode> for ErrorKind
impl From<SandboxErrorCode> for ErrorKind
source§fn from(source: SandboxErrorCode) -> Self
fn from(source: SandboxErrorCode) -> Self
Converts to this type from the input type.
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read more