Enum ironoxide::IronOxideErr
source · #[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)>
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
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 !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