[]Enum ironoxide::IronOxideErr

pub enum IronOxideErr {
    ValidationError(StringString),
    DocumentHeaderParseFailure(String),
    WrongSizeError(Option<usize>, Option<usize>),
    KeyGenerationError,
    AesError(Unspecified),
    AesEncryptedDocSizeError,
    InvalidRecryptEncryptedValue(String),
    RecryptError(String),
    UserDoesNotExist(String),
    InitializeError,
    RequestError {
        message: String,
        code: RequestErrorCode,
        http_status: Option<u16>,
    },
    RequestServerErrors {
        errors: Vec<ServerError>,
        code: RequestErrorCode,
        http_status: Option<u16>,
    },
    MissingTransformBlocks,
    NotGroupAdmin(GroupId),
    ProtobufSerdeError(ProtobufError),
    ProtobufValidationError(String),
    UnmanagedDecryptionError(Stringi32Stringi32),
    UserPrivateKeyRotationError(String),
}

Errors generated by IronOxide SDK operations

Variants

ValidationError(StringString)
DocumentHeaderParseFailure(String)
WrongSizeError(Option<usize>, Option<usize>)
KeyGenerationError
AesError(Unspecified)
AesEncryptedDocSizeError
InvalidRecryptEncryptedValue(String)
RecryptError(String)
UserDoesNotExist(String)
InitializeError
RequestError

Fields of RequestError

message: Stringcode: RequestErrorCodehttp_status: Option<u16>
RequestServerErrors

This is used if the response from the server was an error. In that case we know that the format of the errors will be ServerError.

Fields of RequestServerErrors

errors: Vec<ServerError>code: RequestErrorCodehttp_status: Option<u16>
MissingTransformBlocks
NotGroupAdmin(GroupId)

The operation failed because the accessing user was not a group admin, but must be for the operation to work.

ProtobufSerdeError(ProtobufError)

Protobuf encode/decode error

ProtobufValidationError(String)

Protobuf decode succeeded, but the result is not valid

UnmanagedDecryptionError(Stringi32Stringi32)
UserPrivateKeyRotationError(String)

Trait Implementations

impl From<Unspecified> for IronOxideErr[src]

impl From<(Error, RequestErrorCode)> for IronOxideErr[src]

impl From<(ParseError, RequestErrorCode)> for IronOxideErr[src]

impl From<(Error, RequestErrorCode)> for IronOxideErr[src]

impl From<RecryptErr> for IronOxideErr[src]

impl From<ProtobufError> for IronOxideErr[src]

impl From<NonEmptyVecError> for IronOxideErr[src]

impl From<IronOxideErr> for String[src]

A way to turn IronSdkErr into Strings for the Java binding

impl Display for IronOxideErr

impl Debug for IronOxideErr[src]

impl Error for IronOxideErr

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> AsFail for T where
    T: Fail, 

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err