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

Error that can occur when parsing a key.

Invalid version byte in key.

Invalid checksum in key.

Invalid keypair seed.

Invalid Asset code.

Invalid signature.

Invalid memo text: too long.

Error that can occur when parsing amounts from stroops.

Error that can occur when converting an amount with more than 7 digits.

Invalid network id: too long.

Invalid public key.

Error that can occur when interpreting a sequence of u8 as utf-8.

Error that can occour when decoding base64 encoded data.

Error that can occur when parsing amounts.

Error that can occur when serializing to XDR.

Error that can occur when deserializing from XDR.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl From<Utf8Error> for Error
[src]

[src]

Performs the conversion.

impl From<DecodeError> for Error
[src]

[src]

Performs the conversion.

impl From<ParseBigDecimalError> for Error
[src]

[src]

Performs the conversion.

impl From<CompatDeserializationError> for Error
[src]

[src]

Performs the conversion.

impl From<CompatSerializationError> for Error
[src]

[src]

Performs the conversion.