Enum shuttle_core::Error
[−]
[src]
pub enum Error { InvalidStrKey, InvalidStrKeyVersionByte, InvalidStrKeyChecksum, InvalidSeed, InvalidAssetCode, InvalidSignature, InvalidMemoText, InvalidStroopsAmount, InvalidAmountScale, InvalidNetworkId, InvalidPublicKey, Utf8Error(Utf8Error), DecodeError(DecodeError), ParseAmountError(ParseBigDecimalError), SerializationError(CompatSerializationError), DeserializationError(CompatDeserializationError), }
The Errors that can occur.
Variants
InvalidStrKey
Error that can occur when parsing a key.
InvalidStrKeyVersionByte
Invalid version byte in key.
InvalidStrKeyChecksum
Invalid checksum in key.
InvalidSeed
Invalid keypair seed.
InvalidAssetCode
Invalid Asset code.
InvalidSignature
Invalid signature.
InvalidMemoText
Invalid memo text: too long.
InvalidStroopsAmount
Error that can occur when parsing amounts from stroops.
InvalidAmountScale
Error that can occur when converting an amount with more than 7 digits.
InvalidNetworkId
Invalid network id: too long.
InvalidPublicKey
Invalid public key.
Utf8Error(Utf8Error)
Error that can occur when interpreting a sequence of u8
as utf-8.
DecodeError(DecodeError)
Error that can occour when decoding base64 encoded data.
ParseAmountError(ParseBigDecimalError)
Error that can occur when parsing amounts.
SerializationError(CompatSerializationError)
Error that can occur when serializing to XDR.
DeserializationError(CompatDeserializationError)
Error that can occur when deserializing from XDR.
Trait Implementations
impl Debug for Error
[src]
impl From<Utf8Error> for Error
[src]
impl From<DecodeError> for Error
[src]
fn from(err: DecodeError) -> Self
[src]
Performs the conversion.
impl From<ParseBigDecimalError> for Error
[src]
fn from(err: ParseBigDecimalError) -> Self
[src]
Performs the conversion.
impl From<CompatDeserializationError> for Error
[src]
fn from(err: CompatDeserializationError) -> Self
[src]
Performs the conversion.
impl From<CompatSerializationError> for Error
[src]
fn from(err: CompatSerializationError) -> Self
[src]
Performs the conversion.