pub enum XRPLModelException {
Show 20 variants
ExpectedOneOf(&'static [&'static str]),
InvalidFieldCombination {
field: &'static str,
other_fields: &'static [&'static str],
},
ValueTooHigh {
field: String,
max: u32,
found: u32,
},
ValueTooLow {
field: String,
min: u32,
found: u32,
},
InvalidValueFormat {
field: String,
format: String,
found: String,
},
ValueTooLong {
field: String,
max: usize,
found: usize,
},
ValueTooShort {
field: String,
min: usize,
found: usize,
},
ValueBelowValue {
field1: String,
field2: String,
field1_val: u32,
field2_val: u32,
},
ValueEqualsValue {
field1: String,
field2: String,
},
ValueZero(String),
FieldRequiresField {
field1: String,
field2: String,
},
InvalidValue {
field: String,
expected: String,
found: String,
},
MissingField(String),
FromHexError(FromHexError),
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
SerdeJsonError(XRPLSerdeJsonError),
BigDecimalError(ParseBigDecimalError),
XRPLResultError(XRPLResultException),
XRPLTransactionError(XRPLTransactionException),
}
Variants§
ExpectedOneOf(&'static [&'static str])
InvalidFieldCombination
ValueTooHigh
ValueTooLow
InvalidValueFormat
ValueTooLong
ValueTooShort
ValueBelowValue
ValueEqualsValue
ValueZero(String)
FieldRequiresField
InvalidValue
MissingField(String)
FromHexError(FromHexError)
ParseIntError(ParseIntError)
ParseFloatError(ParseFloatError)
SerdeJsonError(XRPLSerdeJsonError)
BigDecimalError(ParseBigDecimalError)
XRPLResultError(XRPLResultException)
XRPLTransactionError(XRPLTransactionException)
Trait Implementations§
Source§impl Debug for XRPLModelException
impl Debug for XRPLModelException
Source§impl Display for XRPLModelException
impl Display for XRPLModelException
Source§impl Error for XRPLModelException
impl Error for XRPLModelException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for XRPLModelException
impl From<Error> for XRPLModelException
Source§impl From<FromHexError> for XRPLModelException
impl From<FromHexError> for XRPLModelException
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<ParseBigDecimalError> for XRPLModelException
impl From<ParseBigDecimalError> for XRPLModelException
Source§fn from(source: ParseBigDecimalError) -> Self
fn from(source: ParseBigDecimalError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for XRPLModelException
impl From<ParseFloatError> for XRPLModelException
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for XRPLModelException
impl From<ParseIntError> for XRPLModelException
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<XRPLAccountSetException> for XRPLModelException
impl From<XRPLAccountSetException> for XRPLModelException
Source§fn from(error: XRPLAccountSetException) -> Self
fn from(error: XRPLAccountSetException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLModelException> for XRPLClientException
impl From<XRPLModelException> for XRPLClientException
Source§fn from(source: XRPLModelException) -> Self
fn from(source: XRPLModelException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLModelException> for XRPLHelperException
impl From<XRPLModelException> for XRPLHelperException
Source§fn from(source: XRPLModelException) -> Self
fn from(source: XRPLModelException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLModelException> for XRPLUtilsException
impl From<XRPLModelException> for XRPLUtilsException
Source§fn from(source: XRPLModelException) -> Self
fn from(source: XRPLModelException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLNFTokenCancelOfferException> for XRPLModelException
impl From<XRPLNFTokenCancelOfferException> for XRPLModelException
Source§fn from(error: XRPLNFTokenCancelOfferException) -> Self
fn from(error: XRPLNFTokenCancelOfferException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLNFTokenCreateOfferException> for XRPLModelException
impl From<XRPLNFTokenCreateOfferException> for XRPLModelException
Source§fn from(error: XRPLNFTokenCreateOfferException) -> Self
fn from(error: XRPLNFTokenCreateOfferException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLPaymentException> for XRPLModelException
impl From<XRPLPaymentException> for XRPLModelException
Source§fn from(error: XRPLPaymentException) -> Self
fn from(error: XRPLPaymentException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLResultException> for XRPLModelException
impl From<XRPLResultException> for XRPLModelException
Source§fn from(source: XRPLResultException) -> Self
fn from(source: XRPLResultException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLSerdeJsonError> for XRPLModelException
impl From<XRPLSerdeJsonError> for XRPLModelException
Source§fn from(source: XRPLSerdeJsonError) -> Self
fn from(source: XRPLSerdeJsonError) -> Self
Converts to this type from the input type.
Source§impl From<XRPLSignerListSetException> for XRPLModelException
impl From<XRPLSignerListSetException> for XRPLModelException
Source§fn from(error: XRPLSignerListSetException) -> Self
fn from(error: XRPLSignerListSetException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLTransactionException> for XRPLModelException
impl From<XRPLTransactionException> for XRPLModelException
Source§fn from(source: XRPLTransactionException) -> Self
fn from(source: XRPLTransactionException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLXChainClaimException> for XRPLModelException
impl From<XRPLXChainClaimException> for XRPLModelException
Source§fn from(error: XRPLXChainClaimException) -> Self
fn from(error: XRPLXChainClaimException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLXChainCreateBridgeException> for XRPLModelException
impl From<XRPLXChainCreateBridgeException> for XRPLModelException
Source§fn from(error: XRPLXChainCreateBridgeException) -> Self
fn from(error: XRPLXChainCreateBridgeException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLXChainCreateClaimIDException> for XRPLModelException
impl From<XRPLXChainCreateClaimIDException> for XRPLModelException
Source§fn from(error: XRPLXChainCreateClaimIDException) -> Self
fn from(error: XRPLXChainCreateClaimIDException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLXChainModifyBridgeException> for XRPLModelException
impl From<XRPLXChainModifyBridgeException> for XRPLModelException
Source§fn from(error: XRPLXChainModifyBridgeException) -> Self
fn from(error: XRPLXChainModifyBridgeException) -> Self
Converts to this type from the input type.
Source§impl PartialEq for XRPLModelException
impl PartialEq for XRPLModelException
impl StructuralPartialEq for XRPLModelException
Auto Trait Implementations§
impl Freeze for XRPLModelException
impl !RefUnwindSafe for XRPLModelException
impl Send for XRPLModelException
impl Sync for XRPLModelException
impl Unpin for XRPLModelException
impl !UnwindSafe for XRPLModelException
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.