Enum Error

Source
#[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
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.
§

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.

§

UnauthorizedError(UnauthorizedError)

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 Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ChangeGuideVisibilityError> for Error

Source§

fn from(err: ChangeGuideVisibilityError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateGuideAttachmentError> for Error

Source§

fn from(err: CreateGuideAttachmentError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateGuideError> for Error

Source§

fn from(err: CreateGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateGuideSampleError> for Error

Source§

fn from(err: CreateGuideSampleError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteGuideAttachmentError> for Error

Source§

fn from(err: DeleteGuideAttachmentError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteGuideError> for Error

Source§

fn from(err: DeleteGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteGuideSampleError> for Error

Source§

fn from(err: DeleteGuideSampleError) -> Self

Converts to this type from the input type.
Source§

impl From<GetAccountConfigError> for Error

Source§

fn from(err: GetAccountConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetGuideError> for Error

Source§

fn from(err: GetGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<GetGuidesNetworkError> for Error

Source§

fn from(err: GetGuidesNetworkError) -> Self

Converts to this type from the input type.
Source§

impl From<GetPublicAccountConfigError> for Error

Source§

fn from(err: GetPublicAccountConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetPublicGuideError> for Error

Source§

fn from(err: GetPublicGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<GetPublicSharedGuideError> for Error

Source§

fn from(err: GetPublicSharedGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<GetX12TransactionSetMetadataError> for Error

Source§

fn from(err: GetX12TransactionSetMetadataError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAllPublicGuidesError> for Error

Source§

fn from(err: ListAllPublicGuidesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListGuideAttachmentsError> for Error

Source§

fn from(err: ListGuideAttachmentsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListGuideSamplesError> for Error

Source§

fn from(err: ListGuideSamplesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListGuidesError> for Error

Source§

fn from(err: ListGuidesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPublicGuideAttachmentsError> for Error

Source§

fn from(err: ListPublicGuideAttachmentsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPublicGuideSamplesError> for Error

Source§

fn from(err: ListPublicGuideSamplesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPublicGuidesError> for Error

Source§

fn from(err: ListPublicGuidesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPublicSharedGuideAttachmentsError> for Error

Source§

fn from(err: ListPublicSharedGuideAttachmentsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPublicSharedGuideSamplesError> for Error

Source§

fn from(err: ListPublicSharedGuideSamplesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListX12TransactionSetsError> for Error

Source§

fn from(err: ListX12TransactionSetsError) -> Self

Converts to this type from the input type.
Source§

impl From<PublishGuideError> for Error

Source§

fn from(err: PublishGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<RevertGuideError> for Error

Source§

fn from(err: RevertGuideError) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ChangeGuideVisibilityError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ChangeGuideVisibilityError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateGuideAttachmentError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateGuideAttachmentError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateGuideSampleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateGuideSampleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteGuideAttachmentError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteGuideAttachmentError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteGuideSampleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteGuideSampleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetAccountConfigError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetAccountConfigError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetGuidesNetworkError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetGuidesNetworkError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetPublicAccountConfigError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetPublicAccountConfigError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetPublicGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetPublicGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetPublicSharedGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetPublicSharedGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetX12TransactionSetMetadataError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetX12TransactionSetMetadataError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListAllPublicGuidesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListAllPublicGuidesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListGuideAttachmentsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListGuideAttachmentsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListGuideSamplesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListGuideSamplesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListGuidesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListGuidesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListPublicGuideAttachmentsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListPublicGuideAttachmentsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListPublicGuideSamplesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListPublicGuideSamplesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListPublicGuidesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListPublicGuidesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListPublicSharedGuideAttachmentsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListPublicSharedGuideAttachmentsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListPublicSharedGuideSamplesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListPublicSharedGuideSamplesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListX12TransactionSetsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListX12TransactionSetsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PublishGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PublishGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RevertGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RevertGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateAccountConfigError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateAccountConfigError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateGuideAttachmentError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateGuideAttachmentError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateGuideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateGuideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateGuideSampleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateGuideSampleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateShareConfigError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateShareConfigError, R>) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateAccountConfigError> for Error

Source§

fn from(err: UpdateAccountConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGuideAttachmentError> for Error

Source§

fn from(err: UpdateGuideAttachmentError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGuideError> for Error

Source§

fn from(err: UpdateGuideError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGuideSampleError> for Error

Source§

fn from(err: UpdateGuideSampleError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateShareConfigError> for Error

Source§

fn from(err: UpdateShareConfigError) -> Self

Converts to this type from the input type.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,