Enum cosmwasm_std::SystemError [−][src]
#[non_exhaustive]
pub enum SystemError {
InvalidRequest {
error: String,
request: Binary,
},
InvalidResponse {
error: String,
response: Binary,
},
NoSuchContract {
addr: String,
},
Unknown {},
UnsupportedRequest {
kind: String,
},
}Expand description
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)
This enum is marked as non-exhaustive
Show 1 field
Fields of NoSuchContract
addr: StringThe address that was attempted to query
Show 0 field
Fields of Unknown
Show 1 field
Fields of UnsupportedRequest
kind: StringTrait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SystemErrorimpl Send for SystemErrorimpl Sync for SystemErrorimpl Unpin for SystemErrorimpl UnwindSafe for SystemErrorBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self