pub enum SharedError {
Show 13 variants
Std(StdError),
AssetError(AssetError),
OverflowError(OverflowError),
CheckedMultiplyRatioError(CheckedMultiplyRatioError),
Unauthorized {},
UnauthorizedMissingRight(String, String),
UnauthorizedCallbackOnlyCallableByContract {},
NoFundsAllowed {},
NotFound(String),
NotSupported(String),
InsufficientBalance(String),
WrongDeposit(String),
ContractMismatch(String, String),
}Variants§
Std(StdError)
AssetError(AssetError)
OverflowError(OverflowError)
CheckedMultiplyRatioError(CheckedMultiplyRatioError)
NoFundsAllowed
NotFound(String)
NotSupported(String)
InsufficientBalance(String)
WrongDeposit(String)
ContractMismatch(String, String)
Trait Implementations§
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§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§fn from(source: CheckedMultiplyRatioError) -> Self
fn from(source: CheckedMultiplyRatioError) -> Self
Converts to this type from the input type.
Source§fn from(source: OverflowError) -> Self
fn from(source: OverflowError) -> Self
Converts to this type from the input type.
Source§fn eq(&self, other: &SharedError) -> bool
fn eq(&self, other: &SharedError) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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