Enum aws_sdk_pricing::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ExpiredNextTokenException(ExpiredNextTokenException),
InternalErrorException(InternalErrorException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidParameterException(InvalidParameterException),
NotFoundException(NotFoundException),
ResourceNotFoundException(ResourceNotFoundException),
ThrottlingException(ThrottlingException),
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.
AccessDeniedException(AccessDeniedException)
General authentication failure. The request wasn't signed correctly.
ExpiredNextTokenException(ExpiredNextTokenException)
The pagination token expired. Try again without a pagination token.
InternalErrorException(InternalErrorException)
An error on the server occurred during the processing of your request. Try again later.
InvalidNextTokenException(InvalidNextTokenException)
The pagination token is invalid. Try again without a pagination token.
InvalidParameterException(InvalidParameterException)
One or more parameters had an invalid value.
NotFoundException(NotFoundException)
The requested resource can't be found.
ResourceNotFoundException(ResourceNotFoundException)
The requested resource can't be found.
ThrottlingException(ThrottlingException)
You've made too many requests exceeding service quotas.
Unhandled(Unhandled)
👎Deprecated: Matching
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl From<DescribeServicesError> for Error
impl From<DescribeServicesError> for Error
source§fn from(err: DescribeServicesError) -> Self
fn from(err: DescribeServicesError) -> Self
Converts to this type from the input type.
source§impl From<GetAttributeValuesError> for Error
impl From<GetAttributeValuesError> for Error
source§fn from(err: GetAttributeValuesError) -> Self
fn from(err: GetAttributeValuesError) -> Self
Converts to this type from the input type.
source§impl From<GetPriceListFileUrlError> for Error
impl From<GetPriceListFileUrlError> for Error
source§fn from(err: GetPriceListFileUrlError) -> Self
fn from(err: GetPriceListFileUrlError) -> Self
Converts to this type from the input type.
source§impl From<GetProductsError> for Error
impl From<GetProductsError> for Error
source§fn from(err: GetProductsError) -> Self
fn from(err: GetProductsError) -> Self
Converts to this type from the input type.
source§impl From<ListPriceListsError> for Error
impl From<ListPriceListsError> for Error
source§fn from(err: ListPriceListsError) -> Self
fn from(err: ListPriceListsError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeServicesError, R>> for Error
impl<R> From<SdkError<DescribeServicesError, R>> for Error
source§fn from(err: SdkError<DescribeServicesError, R>) -> Self
fn from(err: SdkError<DescribeServicesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetAttributeValuesError, R>> for Error
impl<R> From<SdkError<GetAttributeValuesError, R>> for Error
source§fn from(err: SdkError<GetAttributeValuesError, R>) -> Self
fn from(err: SdkError<GetAttributeValuesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetPriceListFileUrlError, R>> for Error
impl<R> From<SdkError<GetPriceListFileUrlError, R>> for Error
source§fn from(err: SdkError<GetPriceListFileUrlError, R>) -> Self
fn from(err: SdkError<GetPriceListFileUrlError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetProductsError, R>> for Error
impl<R> From<SdkError<GetProductsError, R>> for Error
source§fn from(err: SdkError<GetProductsError, R>) -> Self
fn from(err: SdkError<GetProductsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListPriceListsError, R>> for Error
impl<R> From<SdkError<ListPriceListsError, R>> for Error
source§fn from(err: SdkError<ListPriceListsError, R>) -> Self
fn from(err: SdkError<ListPriceListsError, R>) -> Self
Converts to this type from the input type.
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
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
Mutably borrows from an owned value. Read more
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>
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 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>
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 moreCreates a shared type from an unshared type.