Struct near_workspaces::error::Error
source · pub struct Error { /* private fields */ }Expand description
Error type that workspaces will make use of for all the errors returned from this library
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<ExecutionResult<TxExecutionError>> for Error
impl From<ExecutionResult<TxExecutionError>> for Error
source§fn from(error: ExecutionFailure) -> Self
fn from(error: ExecutionFailure) -> Self
Converts to this type from the input type.
source§impl From<RpcErrorCode> for Error
impl From<RpcErrorCode> for Error
source§fn from(code: RpcErrorCode) -> Self
fn from(code: RpcErrorCode) -> Self
Converts to this type from the input type.
source§impl From<SandboxErrorCode> for Error
impl From<SandboxErrorCode> for Error
source§fn from(code: SandboxErrorCode) -> Self
fn from(code: SandboxErrorCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
§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