[][src]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),
    UserOrGroupDoesNotExist(UserOrGroup),
    InitializeError(String),
    RequestError {
        message: String,
        code: RequestErrorCode,
        http_status: Option<u16>,
    },
    RequestServerErrors {
        errors: Vec<ServerError>,
        code: RequestErrorCode,
        http_status: Option<u16>,
    },
    MissingTransformBlocks,
    NotGroupAdmin(GroupId),
    PolicyDoesNotExist,
    ProtobufSerdeError(ProtobufError),
    ProtobufValidationError(String),
    UnmanagedDecryptionError(Stringi32Stringi32),
    UserPrivateKeyRotationError(String),
    GroupPrivateKeyRotationError(String),
    OperationTimedOut {
        operation: SdkOperation,
        duration: Duration,
    },
}

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)
UserOrGroupDoesNotExist(UserOrGroup)
InitializeError(String)
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.

PolicyDoesNotExist

No policy exists for the segment

ProtobufSerdeError(ProtobufError)

Protobuf encode/decode error

ProtobufValidationError(String)

Protobuf decode succeeded, but the result is not valid

UnmanagedDecryptionError(Stringi32Stringi32)
UserPrivateKeyRotationError(String)
GroupPrivateKeyRotationError(String)
OperationTimedOut

Fields of OperationTimedOut

operation: SdkOperationduration: Duration

Trait Implementations

impl Debug for IronOxideErr[src]

impl Display for IronOxideErr[src]

impl Error for IronOxideErr[src]

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

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

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

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

impl From<IronOxideErr> for String[src]

A way to turn IronSdkErr into Strings for the Java binding

impl From<NonEmptyVecError> for IronOxideErr[src]

impl From<ProtobufError> for IronOxideErr[src]

impl From<RecryptErr> for IronOxideErr[src]

impl From<Unspecified> for IronOxideErr[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,