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(ProtobufError),
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
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(ProtobufError)
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
sourceimpl Debug for IronOxideErr
impl Debug for IronOxideErr
sourceimpl Display for IronOxideErr
impl Display for IronOxideErr
sourceimpl Error for IronOxideErr
impl Error for IronOxideErr
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<(Error, RequestErrorCode)> for IronOxideErr
impl From<(Error, RequestErrorCode)> for IronOxideErr
sourceimpl From<(Error, RequestErrorCode)> for IronOxideErr
impl From<(Error, RequestErrorCode)> for IronOxideErr
sourceimpl From<(ParseError, RequestErrorCode)> for IronOxideErr
impl From<(ParseError, RequestErrorCode)> for IronOxideErr
sourcefn from((e, code): (ParseError, RequestErrorCode)) -> Self
fn from((e, code): (ParseError, RequestErrorCode)) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for IronOxideErr
impl From<Error> for IronOxideErr
sourcefn from(e: ProtobufError) -> Self
fn from(e: ProtobufError) -> Self
Converts to this type from the input type.
sourceimpl From<IronOxideErr> for String
impl From<IronOxideErr> for String
A way to turn IronSdkErr into Strings for the Java binding
sourcefn from(err: IronOxideErr) -> Self
fn from(err: IronOxideErr) -> Self
Converts to this type from the input type.
sourceimpl From<JoinError> for IronOxideErr
impl From<JoinError> for IronOxideErr
sourceimpl From<NonEmptyVecError> for IronOxideErr
impl From<NonEmptyVecError> for IronOxideErr
sourcefn from(_: NonEmptyVecError) -> Self
fn from(_: NonEmptyVecError) -> Self
Converts to this type from the input type.
sourceimpl From<RecryptErr> for IronOxideErr
impl From<RecryptErr> for IronOxideErr
sourcefn from(recrypt_err: RecryptErr) -> Self
fn from(recrypt_err: RecryptErr) -> Self
Converts to this type from the input type.
sourceimpl From<Unspecified> for IronOxideErr
impl From<Unspecified> for IronOxideErr
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more