[−][src]Enum cosmwasm_std::SystemError
SystemError is used for errors inside the VM and is API friendly (i.e. serializable).
This is used on return values for Querier as a nested result: Result<StdResult
Such errors are only created by the VM. The error type is defined in the standard library, to ensure the contract understands the error format without creating a dependency on cosmwasm-vm.
Variants (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.
Fields of NoSuchContract
addr: HumanAddrFields of Unknown
Fields of UnsupportedRequest
kind: StringTrait Implementations
impl Clone for SystemError[src]
fn clone(&self) -> SystemError[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SystemError[src]
impl<'de> Deserialize<'de> for SystemError[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Display for SystemError[src]
impl Error for SystemError[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>[src]
fn description(&self) -> &str1.0.0[src]
fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl JsonSchema for SystemError[src]
fn schema_name() -> String[src]
fn json_schema(gen: &mut SchemaGenerator) -> Schema[src]
fn is_referenceable() -> bool[src]
impl PartialEq<SystemError> for SystemError[src]
fn eq(&self, other: &SystemError) -> bool[src]
fn ne(&self, other: &SystemError) -> bool[src]
impl Serialize for SystemError[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for SystemError[src]
Auto Trait Implementations
impl RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnwindSafe for SystemError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error, [src]
T: 'static + Error,
fn as_error_source(&self) -> &(dyn Error + 'static)[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,