Enum secret_cosmwasm_std::SystemError
source · [−]#[non_exhaustive]
pub enum SystemError {
InvalidRequest {
error: String,
request: Binary,
},
InvalidResponse {
error: String,
response: Binary,
},
NoSuchContract {
addr: HumanAddr,
},
Unknown {},
UnsupportedRequest {
kind: String,
},
ExceededRecursionLimit {},
}
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
InvalidRequest
InvalidResponse
NoSuchContract
Fields
addr: HumanAddr
Unknown
Fields
UnsupportedRequest
Fields
kind: String
ExceededRecursionLimit
Fields
Trait Implementations
sourceimpl Clone for SystemError
impl Clone for SystemError
sourcefn clone(&self) -> SystemError
fn clone(&self) -> SystemError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemError
impl Debug for SystemError
sourceimpl<'de> Deserialize<'de> for SystemError
impl<'de> Deserialize<'de> for SystemError
sourcefn 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
sourceimpl Display for SystemError
impl Display for SystemError
sourceimpl Error for SystemError
impl Error for SystemError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl JsonSchema for SystemError
impl JsonSchema for SystemError
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl PartialEq<SystemError> for SystemError
impl PartialEq<SystemError> for SystemError
sourcefn eq(&self, other: &SystemError) -> bool
fn eq(&self, other: &SystemError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SystemError) -> bool
fn ne(&self, other: &SystemError) -> bool
This method tests for !=
.
sourceimpl Serialize for SystemError
impl Serialize for SystemError
impl StructuralPartialEq for SystemError
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
sourceimpl<T> AsErrorSource for T where
T: 'static + Error,
impl<T> AsErrorSource for T where
T: 'static + Error,
sourcefn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more