#[non_exhaustive]pub enum IronOxideErr {
Show 23 variants
ValidationError(String, String),
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(Error),
ProtobufValidationError(String),
UnmanagedDecryptionError(String, i32, String, i32),
UserPrivateKeyRotationError(String),
GroupPrivateKeyRotationError(String),
OperationTimedOut {
operation: SdkOperation,
duration: Duration,
},
JoinError(String),
}
Expand description
Errors generated by IronOxide SDK operations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ValidationError(String, String)
DocumentHeaderParseFailure(String)
WrongSizeError(Option<usize>, Option<usize>)
KeyGenerationError
AesError(Unspecified)
AesEncryptedDocSizeError
InvalidRecryptEncryptedValue(String)
RecryptError(String)
UserDoesNotExist(String)
UserOrGroupDoesNotExist(UserOrGroup)
InitializeError(String)
RequestError
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
.
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(Error)
Protobuf encode/decode error
ProtobufValidationError(String)
Protobuf decode succeeded, but the result is not valid
UnmanagedDecryptionError(String, i32, String, i32)
UserPrivateKeyRotationError(String)
GroupPrivateKeyRotationError(String)
OperationTimedOut
JoinError(String)
Trait Implementations§
Source§impl Debug for IronOxideErr
impl Debug for IronOxideErr
Source§impl Display for IronOxideErr
impl Display for IronOxideErr
Source§impl Error for IronOxideErr
impl Error for IronOxideErr
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<(Error, RequestErrorCode)> for IronOxideErr
impl From<(Error, RequestErrorCode)> for IronOxideErr
Source§impl From<(Error, RequestErrorCode)> for IronOxideErr
impl From<(Error, RequestErrorCode)> for IronOxideErr
Source§impl From<(ParseError, RequestErrorCode)> for IronOxideErr
impl From<(ParseError, RequestErrorCode)> for IronOxideErr
Source§fn from((e, code): (ParseError, RequestErrorCode)) -> Self
fn from((e, code): (ParseError, RequestErrorCode)) -> Self
Converts to this type from the input type.
Source§impl From<Error> for IronOxideErr
impl From<Error> for IronOxideErr
Source§fn from(e: ProtobufError) -> Self
fn from(e: ProtobufError) -> Self
Converts to this type from the input type.
Source§impl From<IronOxideErr> for String
A way to turn IronSdkErr into Strings for the Java binding
impl From<IronOxideErr> for String
A way to turn IronSdkErr into Strings for the Java binding
Source§fn from(err: IronOxideErr) -> Self
fn from(err: IronOxideErr) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for IronOxideErr
impl From<JoinError> for IronOxideErr
Source§impl From<NonEmptyVecError> for IronOxideErr
impl From<NonEmptyVecError> for IronOxideErr
Source§fn from(_: NonEmptyVecError) -> Self
fn from(_: NonEmptyVecError) -> Self
Converts to this type from the input type.
Source§impl From<RecryptErr> for IronOxideErr
impl From<RecryptErr> for IronOxideErr
Source§fn from(recrypt_err: RecryptErr) -> Self
fn from(recrypt_err: RecryptErr) -> Self
Converts to this type from the input type.
Source§impl From<Unspecified> for IronOxideErr
impl From<Unspecified> for IronOxideErr
Source§fn from(ring_err: Unspecified) -> Self
fn from(ring_err: Unspecified) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IronOxideErr
impl !RefUnwindSafe for IronOxideErr
impl Send for IronOxideErr
impl Sync for IronOxideErr
impl Unpin for IronOxideErr
impl !UnwindSafe for IronOxideErr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more