[]Enum ironoxide::IronOxideErr

pub enum IronOxideErr {
    WrongSizeError(Option<usize>, Option<usize>),
    RequestError {
        message: String,
        code: RequestErrorCode,
        http_status: Option<u16>,
    RequestServerErrors {
        errors: Vec<ServerError>,
        code: RequestErrorCode,
        http_status: Option<u16>,

Errors generated by IronOxide SDK operations


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>

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>

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


Protobuf encode/decode error


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>, 

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

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

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