Enum cw_multi_test::error::Error
source · pub enum Error {
EmptyAttributeKey(String),
EmptyAttributeValue(String),
ReservedAttributeKey(String),
EventTypeTooShort(String),
UnsupportedWasmQuery(WasmQuery),
UnsupportedWasmMsg(WasmMsg),
InvalidCodeId,
UnregisteredCodeId(u64),
DuplicatedCodeId(u64),
NoMoreCodeIdAvailable,
DuplicatedContractAddress(String),
}
Expand description
An enumeration of errors reported across the CosmWasm MultiTest library.
Variants§
EmptyAttributeKey(String)
Error variant for reporting an empty attribute key.
EmptyAttributeValue(String)
Error variant for reporting an empty attribute value.
ReservedAttributeKey(String)
Error variant for reporting a usage of reserved key prefix.
EventTypeTooShort(String)
Error variant for reporting too short event types.
UnsupportedWasmQuery(WasmQuery)
Error variant for reporting that unsupported wasm query was encountered during processing.
UnsupportedWasmMsg(WasmMsg)
Error variant for reporting that unsupported wasm message was encountered during processing.
InvalidCodeId
Error variant for reporting invalid contract code.
UnregisteredCodeId(u64)
Error variant for reporting unregistered contract code.
DuplicatedCodeId(u64)
Error variant for reporting duplicated contract code identifier.
NoMoreCodeIdAvailable
Error variant for reporting a situation when no more contract code identifiers are available.
DuplicatedContractAddress(String)
Error variant for reporting duplicated contract addresses.
Implementations§
source§impl Error
impl Error
sourcepub fn empty_attribute_key(value: impl Into<String>) -> Self
pub fn empty_attribute_key(value: impl Into<String>) -> Self
Creates an instance of the Error for empty attribute key.
sourcepub fn empty_attribute_value(key: impl Into<String>) -> Self
pub fn empty_attribute_value(key: impl Into<String>) -> Self
Creates an instance of the Error for empty attribute value.
sourcepub fn reserved_attribute_key(key: impl Into<String>) -> Self
pub fn reserved_attribute_key(key: impl Into<String>) -> Self
Creates an instance of the Error when reserved attribute key was used.
sourcepub fn event_type_too_short(ty: impl Into<String>) -> Self
pub fn event_type_too_short(ty: impl Into<String>) -> Self
Creates an instance of the Error for too short event types.
sourcepub fn unsupported_wasm_query(query: WasmQuery) -> Self
pub fn unsupported_wasm_query(query: WasmQuery) -> Self
Creates an instance of the Error for unsupported wasm queries.
sourcepub fn unsupported_wasm_message(msg: WasmMsg) -> Self
pub fn unsupported_wasm_message(msg: WasmMsg) -> Self
Creates an instance of the Error for unsupported wasm messages.
sourcepub fn invalid_code_id() -> Self
pub fn invalid_code_id() -> Self
Creates an instance of the Error for invalid contract code identifier.
sourcepub fn unregistered_code_id(code_id: u64) -> Self
pub fn unregistered_code_id(code_id: u64) -> Self
Creates an instance of the Error for unregistered contract code identifier.
sourcepub fn duplicated_code_id(code_id: u64) -> Self
pub fn duplicated_code_id(code_id: u64) -> Self
Creates an instance of the Error for duplicated contract code identifier.
sourcepub fn no_more_code_id_available() -> Self
pub fn no_more_code_id_available() -> Self
Creates an instance of the Error for exhausted contract code identifiers.
sourcepub fn duplicated_contract_address(address: impl Into<String>) -> Self
pub fn duplicated_contract_address(address: impl Into<String>) -> Self
Creates an instance of the Error for duplicated contract addresses.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more