#[non_exhaustive]pub enum Error {
AccessDeniedError(AccessDeniedError),
BadRequestError(BadRequestError),
InternalFailureError(InternalFailureError),
RequestTooLargeError(RequestTooLargeError),
ResourceConflictError(ResourceConflictError),
ResourceNotFoundError(ResourceNotFoundError),
ResponseTooLargeError(ResponseTooLargeError),
ThrottlingError(ThrottlingError),
UnauthorizedError(UnauthorizedError),
ValidationError(ValidationError),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedError(AccessDeniedError)
The server response for authorization failure.
BadRequestError(BadRequestError)
The server cannot process the request due to an apparent client error.
InternalFailureError(InternalFailureError)
The server response when an unexpected error occurred while processing request.
RequestTooLargeError(RequestTooLargeError)
The server response for the request too large error.
ResourceConflictError(ResourceConflictError)
The server could not process the request because of conflict in the current state of the resource.
ResourceNotFoundError(ResourceNotFoundError)
The server response when the specified resource cannot be found after an API request passes authentication and authorization.
ResponseTooLargeError(ResponseTooLargeError)
The server response for the request too large error.
ThrottlingError(ThrottlingError)
The server response when usage plan or account-level throttling limits exceeded.
The server response when the authorizer failed to authenticate the caller.
ValidationError(ValidationError)
A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ChangeGuideVisibilityError> for Error
impl From<ChangeGuideVisibilityError> for Error
Source§fn from(err: ChangeGuideVisibilityError) -> Self
fn from(err: ChangeGuideVisibilityError) -> Self
Source§impl From<CreateGuideAttachmentError> for Error
impl From<CreateGuideAttachmentError> for Error
Source§fn from(err: CreateGuideAttachmentError) -> Self
fn from(err: CreateGuideAttachmentError) -> Self
Source§impl From<CreateGuideError> for Error
impl From<CreateGuideError> for Error
Source§fn from(err: CreateGuideError) -> Self
fn from(err: CreateGuideError) -> Self
Source§impl From<CreateGuideSampleError> for Error
impl From<CreateGuideSampleError> for Error
Source§fn from(err: CreateGuideSampleError) -> Self
fn from(err: CreateGuideSampleError) -> Self
Source§impl From<DeleteGuideAttachmentError> for Error
impl From<DeleteGuideAttachmentError> for Error
Source§fn from(err: DeleteGuideAttachmentError) -> Self
fn from(err: DeleteGuideAttachmentError) -> Self
Source§impl From<DeleteGuideError> for Error
impl From<DeleteGuideError> for Error
Source§fn from(err: DeleteGuideError) -> Self
fn from(err: DeleteGuideError) -> Self
Source§impl From<DeleteGuideSampleError> for Error
impl From<DeleteGuideSampleError> for Error
Source§fn from(err: DeleteGuideSampleError) -> Self
fn from(err: DeleteGuideSampleError) -> Self
Source§impl From<GetAccountConfigError> for Error
impl From<GetAccountConfigError> for Error
Source§fn from(err: GetAccountConfigError) -> Self
fn from(err: GetAccountConfigError) -> Self
Source§impl From<GetGuideError> for Error
impl From<GetGuideError> for Error
Source§fn from(err: GetGuideError) -> Self
fn from(err: GetGuideError) -> Self
Source§impl From<GetGuidesNetworkError> for Error
impl From<GetGuidesNetworkError> for Error
Source§fn from(err: GetGuidesNetworkError) -> Self
fn from(err: GetGuidesNetworkError) -> Self
Source§impl From<GetPublicAccountConfigError> for Error
impl From<GetPublicAccountConfigError> for Error
Source§fn from(err: GetPublicAccountConfigError) -> Self
fn from(err: GetPublicAccountConfigError) -> Self
Source§impl From<GetPublicGuideError> for Error
impl From<GetPublicGuideError> for Error
Source§fn from(err: GetPublicGuideError) -> Self
fn from(err: GetPublicGuideError) -> Self
Source§fn from(err: GetPublicSharedGuideError) -> Self
fn from(err: GetPublicSharedGuideError) -> Self
Source§impl From<GetX12TransactionSetMetadataError> for Error
impl From<GetX12TransactionSetMetadataError> for Error
Source§fn from(err: GetX12TransactionSetMetadataError) -> Self
fn from(err: GetX12TransactionSetMetadataError) -> Self
Source§impl From<ListAllPublicGuidesError> for Error
impl From<ListAllPublicGuidesError> for Error
Source§fn from(err: ListAllPublicGuidesError) -> Self
fn from(err: ListAllPublicGuidesError) -> Self
Source§impl From<ListGuideAttachmentsError> for Error
impl From<ListGuideAttachmentsError> for Error
Source§fn from(err: ListGuideAttachmentsError) -> Self
fn from(err: ListGuideAttachmentsError) -> Self
Source§impl From<ListGuideSamplesError> for Error
impl From<ListGuideSamplesError> for Error
Source§fn from(err: ListGuideSamplesError) -> Self
fn from(err: ListGuideSamplesError) -> Self
Source§impl From<ListGuidesError> for Error
impl From<ListGuidesError> for Error
Source§fn from(err: ListGuidesError) -> Self
fn from(err: ListGuidesError) -> Self
Source§impl From<ListPublicGuideAttachmentsError> for Error
impl From<ListPublicGuideAttachmentsError> for Error
Source§fn from(err: ListPublicGuideAttachmentsError) -> Self
fn from(err: ListPublicGuideAttachmentsError) -> Self
Source§impl From<ListPublicGuideSamplesError> for Error
impl From<ListPublicGuideSamplesError> for Error
Source§fn from(err: ListPublicGuideSamplesError) -> Self
fn from(err: ListPublicGuideSamplesError) -> Self
Source§impl From<ListPublicGuidesError> for Error
impl From<ListPublicGuidesError> for Error
Source§fn from(err: ListPublicGuidesError) -> Self
fn from(err: ListPublicGuidesError) -> Self
Source§fn from(err: ListPublicSharedGuideAttachmentsError) -> Self
fn from(err: ListPublicSharedGuideAttachmentsError) -> Self
Source§fn from(err: ListPublicSharedGuideSamplesError) -> Self
fn from(err: ListPublicSharedGuideSamplesError) -> Self
Source§impl From<ListX12TransactionSetsError> for Error
impl From<ListX12TransactionSetsError> for Error
Source§fn from(err: ListX12TransactionSetsError) -> Self
fn from(err: ListX12TransactionSetsError) -> Self
Source§impl From<PublishGuideError> for Error
impl From<PublishGuideError> for Error
Source§fn from(err: PublishGuideError) -> Self
fn from(err: PublishGuideError) -> Self
Source§impl From<RevertGuideError> for Error
impl From<RevertGuideError> for Error
Source§fn from(err: RevertGuideError) -> Self
fn from(err: RevertGuideError) -> Self
Source§impl<R> From<SdkError<ChangeGuideVisibilityError, R>> for Error
impl<R> From<SdkError<ChangeGuideVisibilityError, R>> for Error
Source§fn from(err: SdkError<ChangeGuideVisibilityError, R>) -> Self
fn from(err: SdkError<ChangeGuideVisibilityError, R>) -> Self
Source§impl<R> From<SdkError<CreateGuideAttachmentError, R>> for Error
impl<R> From<SdkError<CreateGuideAttachmentError, R>> for Error
Source§fn from(err: SdkError<CreateGuideAttachmentError, R>) -> Self
fn from(err: SdkError<CreateGuideAttachmentError, R>) -> Self
Source§impl<R> From<SdkError<CreateGuideError, R>> for Error
impl<R> From<SdkError<CreateGuideError, R>> for Error
Source§fn from(err: SdkError<CreateGuideError, R>) -> Self
fn from(err: SdkError<CreateGuideError, R>) -> Self
Source§impl<R> From<SdkError<CreateGuideSampleError, R>> for Error
impl<R> From<SdkError<CreateGuideSampleError, R>> for Error
Source§fn from(err: SdkError<CreateGuideSampleError, R>) -> Self
fn from(err: SdkError<CreateGuideSampleError, R>) -> Self
Source§impl<R> From<SdkError<DeleteGuideAttachmentError, R>> for Error
impl<R> From<SdkError<DeleteGuideAttachmentError, R>> for Error
Source§fn from(err: SdkError<DeleteGuideAttachmentError, R>) -> Self
fn from(err: SdkError<DeleteGuideAttachmentError, R>) -> Self
Source§impl<R> From<SdkError<DeleteGuideError, R>> for Error
impl<R> From<SdkError<DeleteGuideError, R>> for Error
Source§fn from(err: SdkError<DeleteGuideError, R>) -> Self
fn from(err: SdkError<DeleteGuideError, R>) -> Self
Source§impl<R> From<SdkError<DeleteGuideSampleError, R>> for Error
impl<R> From<SdkError<DeleteGuideSampleError, R>> for Error
Source§fn from(err: SdkError<DeleteGuideSampleError, R>) -> Self
fn from(err: SdkError<DeleteGuideSampleError, R>) -> Self
Source§impl<R> From<SdkError<GetAccountConfigError, R>> for Error
impl<R> From<SdkError<GetAccountConfigError, R>> for Error
Source§fn from(err: SdkError<GetAccountConfigError, R>) -> Self
fn from(err: SdkError<GetAccountConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetGuideError, R>> for Error
impl<R> From<SdkError<GetGuideError, R>> for Error
Source§fn from(err: SdkError<GetGuideError, R>) -> Self
fn from(err: SdkError<GetGuideError, R>) -> Self
Source§impl<R> From<SdkError<GetGuidesNetworkError, R>> for Error
impl<R> From<SdkError<GetGuidesNetworkError, R>> for Error
Source§fn from(err: SdkError<GetGuidesNetworkError, R>) -> Self
fn from(err: SdkError<GetGuidesNetworkError, R>) -> Self
Source§impl<R> From<SdkError<GetPublicAccountConfigError, R>> for Error
impl<R> From<SdkError<GetPublicAccountConfigError, R>> for Error
Source§fn from(err: SdkError<GetPublicAccountConfigError, R>) -> Self
fn from(err: SdkError<GetPublicAccountConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetPublicGuideError, R>> for Error
impl<R> From<SdkError<GetPublicGuideError, R>> for Error
Source§fn from(err: SdkError<GetPublicGuideError, R>) -> Self
fn from(err: SdkError<GetPublicGuideError, R>) -> Self
Source§fn from(err: SdkError<GetPublicSharedGuideError, R>) -> Self
fn from(err: SdkError<GetPublicSharedGuideError, R>) -> Self
Source§impl<R> From<SdkError<GetX12TransactionSetMetadataError, R>> for Error
impl<R> From<SdkError<GetX12TransactionSetMetadataError, R>> for Error
Source§fn from(err: SdkError<GetX12TransactionSetMetadataError, R>) -> Self
fn from(err: SdkError<GetX12TransactionSetMetadataError, R>) -> Self
Source§impl<R> From<SdkError<ListAllPublicGuidesError, R>> for Error
impl<R> From<SdkError<ListAllPublicGuidesError, R>> for Error
Source§fn from(err: SdkError<ListAllPublicGuidesError, R>) -> Self
fn from(err: SdkError<ListAllPublicGuidesError, R>) -> Self
Source§impl<R> From<SdkError<ListGuideAttachmentsError, R>> for Error
impl<R> From<SdkError<ListGuideAttachmentsError, R>> for Error
Source§fn from(err: SdkError<ListGuideAttachmentsError, R>) -> Self
fn from(err: SdkError<ListGuideAttachmentsError, R>) -> Self
Source§impl<R> From<SdkError<ListGuideSamplesError, R>> for Error
impl<R> From<SdkError<ListGuideSamplesError, R>> for Error
Source§fn from(err: SdkError<ListGuideSamplesError, R>) -> Self
fn from(err: SdkError<ListGuideSamplesError, R>) -> Self
Source§impl<R> From<SdkError<ListGuidesError, R>> for Error
impl<R> From<SdkError<ListGuidesError, R>> for Error
Source§fn from(err: SdkError<ListGuidesError, R>) -> Self
fn from(err: SdkError<ListGuidesError, R>) -> Self
Source§impl<R> From<SdkError<ListPublicGuideAttachmentsError, R>> for Error
impl<R> From<SdkError<ListPublicGuideAttachmentsError, R>> for Error
Source§fn from(err: SdkError<ListPublicGuideAttachmentsError, R>) -> Self
fn from(err: SdkError<ListPublicGuideAttachmentsError, R>) -> Self
Source§impl<R> From<SdkError<ListPublicGuideSamplesError, R>> for Error
impl<R> From<SdkError<ListPublicGuideSamplesError, R>> for Error
Source§fn from(err: SdkError<ListPublicGuideSamplesError, R>) -> Self
fn from(err: SdkError<ListPublicGuideSamplesError, R>) -> Self
Source§impl<R> From<SdkError<ListPublicGuidesError, R>> for Error
impl<R> From<SdkError<ListPublicGuidesError, R>> for Error
Source§fn from(err: SdkError<ListPublicGuidesError, R>) -> Self
fn from(err: SdkError<ListPublicGuidesError, R>) -> Self
Source§fn from(err: SdkError<ListPublicSharedGuideAttachmentsError, R>) -> Self
fn from(err: SdkError<ListPublicSharedGuideAttachmentsError, R>) -> Self
Source§fn from(err: SdkError<ListPublicSharedGuideSamplesError, R>) -> Self
fn from(err: SdkError<ListPublicSharedGuideSamplesError, R>) -> Self
Source§impl<R> From<SdkError<ListX12TransactionSetsError, R>> for Error
impl<R> From<SdkError<ListX12TransactionSetsError, R>> for Error
Source§fn from(err: SdkError<ListX12TransactionSetsError, R>) -> Self
fn from(err: SdkError<ListX12TransactionSetsError, R>) -> Self
Source§impl<R> From<SdkError<PublishGuideError, R>> for Error
impl<R> From<SdkError<PublishGuideError, R>> for Error
Source§fn from(err: SdkError<PublishGuideError, R>) -> Self
fn from(err: SdkError<PublishGuideError, R>) -> Self
Source§impl<R> From<SdkError<RevertGuideError, R>> for Error
impl<R> From<SdkError<RevertGuideError, R>> for Error
Source§fn from(err: SdkError<RevertGuideError, R>) -> Self
fn from(err: SdkError<RevertGuideError, R>) -> Self
Source§impl<R> From<SdkError<UpdateAccountConfigError, R>> for Error
impl<R> From<SdkError<UpdateAccountConfigError, R>> for Error
Source§fn from(err: SdkError<UpdateAccountConfigError, R>) -> Self
fn from(err: SdkError<UpdateAccountConfigError, R>) -> Self
Source§impl<R> From<SdkError<UpdateGuideAttachmentError, R>> for Error
impl<R> From<SdkError<UpdateGuideAttachmentError, R>> for Error
Source§fn from(err: SdkError<UpdateGuideAttachmentError, R>) -> Self
fn from(err: SdkError<UpdateGuideAttachmentError, R>) -> Self
Source§impl<R> From<SdkError<UpdateGuideError, R>> for Error
impl<R> From<SdkError<UpdateGuideError, R>> for Error
Source§fn from(err: SdkError<UpdateGuideError, R>) -> Self
fn from(err: SdkError<UpdateGuideError, R>) -> Self
Source§impl<R> From<SdkError<UpdateGuideSampleError, R>> for Error
impl<R> From<SdkError<UpdateGuideSampleError, R>> for Error
Source§fn from(err: SdkError<UpdateGuideSampleError, R>) -> Self
fn from(err: SdkError<UpdateGuideSampleError, R>) -> Self
Source§fn from(err: SdkError<UpdateShareConfigError, R>) -> Self
fn from(err: SdkError<UpdateShareConfigError, R>) -> Self
Source§impl From<UpdateAccountConfigError> for Error
impl From<UpdateAccountConfigError> for Error
Source§fn from(err: UpdateAccountConfigError) -> Self
fn from(err: UpdateAccountConfigError) -> Self
Source§impl From<UpdateGuideAttachmentError> for Error
impl From<UpdateGuideAttachmentError> for Error
Source§fn from(err: UpdateGuideAttachmentError) -> Self
fn from(err: UpdateGuideAttachmentError) -> Self
Source§impl From<UpdateGuideError> for Error
impl From<UpdateGuideError> for Error
Source§fn from(err: UpdateGuideError) -> Self
fn from(err: UpdateGuideError) -> Self
Source§impl From<UpdateGuideSampleError> for Error
impl From<UpdateGuideSampleError> for Error
Source§fn from(err: UpdateGuideSampleError) -> Self
fn from(err: UpdateGuideSampleError) -> Self
Source§fn from(err: UpdateShareConfigError) -> Self
fn from(err: UpdateShareConfigError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
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>
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>
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