Enum aws_sdk_rbin::Error
source · #[non_exhaustive]
pub enum Error {
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
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.
ConflictException(ConflictException)
The specified retention rule lock request can't be completed.
InternalServerException(InternalServerException)
The service could not respond to the request due to an internal problem.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource was not found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The request would cause a service quota for the number of tags per resource to be exceeded.
ValidationException(ValidationException)
One or more of the parameters in the request is not valid.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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<CreateRuleError> for Error
impl From<CreateRuleError> for Error
source§fn from(err: CreateRuleError) -> Self
fn from(err: CreateRuleError) -> Self
Converts to this type from the input type.
source§impl From<DeleteRuleError> for Error
impl From<DeleteRuleError> for Error
source§fn from(err: DeleteRuleError) -> Self
fn from(err: DeleteRuleError) -> Self
Converts to this type from the input type.
source§impl From<GetRuleError> for Error
impl From<GetRuleError> for Error
source§fn from(err: GetRuleError) -> Self
fn from(err: GetRuleError) -> Self
Converts to this type from the input type.
source§impl From<ListRulesError> for Error
impl From<ListRulesError> for Error
source§fn from(err: ListRulesError) -> Self
fn from(err: ListRulesError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Converts to this type from the input type.
source§impl From<LockRuleError> for Error
impl From<LockRuleError> for Error
source§fn from(err: LockRuleError) -> Self
fn from(err: LockRuleError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateRuleError, R>) -> Self
fn from(err: SdkError<CreateRuleError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteRuleError, R>) -> Self
fn from(err: SdkError<DeleteRuleError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetRuleError, R>) -> Self
fn from(err: SdkError<GetRuleError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListRulesError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListRulesError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListRulesError, R>) -> Self
fn from(err: SdkError<ListRulesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<LockRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<LockRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<LockRuleError, R>) -> Self
fn from(err: SdkError<LockRuleError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UnlockRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UnlockRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UnlockRuleError, R>) -> Self
fn from(err: SdkError<UnlockRuleError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateRuleError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateRuleError, R>) -> Self
fn from(err: SdkError<UpdateRuleError, R>) -> Self
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UnlockRuleError> for Error
impl From<UnlockRuleError> for Error
source§fn from(err: UnlockRuleError) -> Self
fn from(err: UnlockRuleError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UpdateRuleError> for Error
impl From<UpdateRuleError> for Error
source§fn from(err: UpdateRuleError) -> Self
fn from(err: UpdateRuleError) -> Self
Converts to this type from the input type.