[]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),
}

Errors generated by IronOxide SDK operations

Variants

ValidationError(StringString)DocumentHeaderParseFailure(String)WrongSizeError(Option<usize>, Option<usize>)KeyGenerationErrorAesError(Unspecified)AesEncryptedDocSizeErrorInvalidRecryptEncryptedValue(String)RecryptError(String)UserDoesNotExist(String)InitializeErrorRequestError

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>
MissingTransformBlocksNotGroupAdmin(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

Trait Implementations

impl From<Unspecified> for IronOxideErr[src]

impl From<ProtobufError> for IronOxideErr[src]

impl From<RecryptErr> 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

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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

fn name(&self) -> Option<&str>

Returns the "name" of the error. Read more

fn cause(&self) -> Option<&(dyn Fail + 'static)>

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl<T> Erased for T

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

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