Enum aws_sdk_mq::Error

source ·
#[non_exhaustive]
pub enum Error { BadRequestException(BadRequestException), ConflictException(ConflictException), ForbiddenException(ForbiddenException), InternalServerErrorException(InternalServerErrorException), NotFoundException(NotFoundException), UnauthorizedException(UnauthorizedException), 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.
§

BadRequestException(BadRequestException)

Returns information about an error.

§

ConflictException(ConflictException)

Returns information about an error.

§

ForbiddenException(ForbiddenException)

Returns information about an error.

§

InternalServerErrorException(InternalServerErrorException)

Returns information about an error.

§

NotFoundException(NotFoundException)

Returns information about an error.

§

UnauthorizedException(UnauthorizedException)

Returns information about an error.

§

Unhandled(Unhandled)

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

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

source§

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

👎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, demand: &mut Demand<'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<CreateBrokerError> for Error

source§

fn from(err: CreateBrokerError) -> Self

Converts to this type from the input type.
source§

impl From<CreateConfigurationError> for Error

source§

fn from(err: CreateConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<CreateTagsError> for Error

source§

fn from(err: CreateTagsError) -> Self

Converts to this type from the input type.
source§

impl From<CreateUserError> for Error

source§

fn from(err: CreateUserError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteBrokerError> for Error

source§

fn from(err: DeleteBrokerError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteTagsError> for Error

source§

fn from(err: DeleteTagsError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteUserError> for Error

source§

fn from(err: DeleteUserError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeBrokerEngineTypesError> for Error

source§

fn from(err: DescribeBrokerEngineTypesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeBrokerError> for Error

source§

fn from(err: DescribeBrokerError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeBrokerInstanceOptionsError> for Error

source§

fn from(err: DescribeBrokerInstanceOptionsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeConfigurationError> for Error

source§

fn from(err: DescribeConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeConfigurationRevisionError> for Error

source§

fn from(err: DescribeConfigurationRevisionError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeUserError> for Error

source§

fn from(err: DescribeUserError) -> Self

Converts to this type from the input type.
source§

impl From<ListBrokersError> for Error

source§

fn from(err: ListBrokersError) -> Self

Converts to this type from the input type.
source§

impl From<ListConfigurationRevisionsError> for Error

source§

fn from(err: ListConfigurationRevisionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListConfigurationsError> for Error

source§

fn from(err: ListConfigurationsError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsError> for Error

source§

fn from(err: ListTagsError) -> Self

Converts to this type from the input type.
source§

impl From<ListUsersError> for Error

source§

fn from(err: ListUsersError) -> Self

Converts to this type from the input type.
source§

impl From<RebootBrokerError> for Error

source§

fn from(err: RebootBrokerError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateBrokerError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateTagsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteBrokerError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteTagsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeBrokerEngineTypesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeBrokerError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeBrokerInstanceOptionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeConfigurationRevisionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListBrokersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListConfigurationRevisionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListConfigurationsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListUsersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<RebootBrokerError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateBrokerError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl From<UpdateBrokerError> for Error

source§

fn from(err: UpdateBrokerError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateConfigurationError> for Error

source§

fn from(err: UpdateConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateUserError> for Error

source§

fn from(err: UpdateUserError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

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

source§

default fn to_string(&self) -> String

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

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

§

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 Twhere U: TryFrom<T>,

§

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