Enum neutron_sdk::NeutronError
source · pub enum NeutronError {
Show 16 variants
Std(StdError),
Fmt(Error),
FromUTF8Error(FromUtf8Error),
Bech32(Error),
ProstProtobuf(DecodeError),
SerdeJSONWasm(String),
MaxAddrLength {
max: usize,
actual: usize,
},
InvalidReplyID(u64),
InvalidQueryType {
query_type: String,
},
DecimalRangeExceeded(DecimalRangeExceeded),
Decimal256RangeExceeded(Decimal256RangeExceeded),
OverflowError(OverflowError),
InvalidQueryResultFormat(String),
IntegrationTestsMock {},
TooManyTransactionFilters {
max: usize,
},
AccountDenomBalanceKeyDeconstructionError(String),
}Variants§
Std(StdError)
Fmt(Error)
FromUTF8Error(FromUtf8Error)
Bech32(Error)
ProstProtobuf(DecodeError)
SerdeJSONWasm(String)
MaxAddrLength
InvalidReplyID(u64)
InvalidQueryType
DecimalRangeExceeded(DecimalRangeExceeded)
Decimal256RangeExceeded(Decimal256RangeExceeded)
OverflowError(OverflowError)
InvalidQueryResultFormat(String)
IntegrationTestsMock
TooManyTransactionFilters
AccountDenomBalanceKeyDeconstructionError(String)
Trait Implementations§
source§impl Debug for NeutronError
impl Debug for NeutronError
source§impl Display for NeutronError
impl Display for NeutronError
source§impl Error for NeutronError
impl Error for NeutronError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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§impl From<Decimal256RangeExceeded> for NeutronError
impl From<Decimal256RangeExceeded> for NeutronError
source§fn from(source: Decimal256RangeExceeded) -> Self
fn from(source: Decimal256RangeExceeded) -> Self
Converts to this type from the input type.
source§impl From<DecimalRangeExceeded> for NeutronError
impl From<DecimalRangeExceeded> for NeutronError
source§fn from(source: DecimalRangeExceeded) -> Self
fn from(source: DecimalRangeExceeded) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for NeutronError
impl From<DecodeError> for NeutronError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for NeutronError
impl From<Error> for NeutronError
source§impl From<Error> for NeutronError
impl From<Error> for NeutronError
source§impl From<Error> for NeutronError
impl From<Error> for NeutronError
source§impl From<FromUtf8Error> for NeutronError
impl From<FromUtf8Error> for NeutronError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<OverflowError> for NeutronError
impl From<OverflowError> for NeutronError
source§fn from(source: OverflowError) -> Self
fn from(source: OverflowError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for NeutronError
impl From<StdError> for NeutronError
source§impl PartialEq for NeutronError
impl PartialEq for NeutronError
source§fn eq(&self, other: &NeutronError) -> bool
fn eq(&self, other: &NeutronError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NeutronError
Auto Trait Implementations§
impl Freeze for NeutronError
impl RefUnwindSafe for NeutronError
impl Send for NeutronError
impl Sync for NeutronError
impl Unpin for NeutronError
impl UnwindSafe for NeutronError
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