Enum aws_sdk_budgets::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
CreationLimitExceededException(CreationLimitExceededException),
DuplicateRecordException(DuplicateRecordException),
ExpiredNextTokenException(ExpiredNextTokenException),
InternalErrorException(InternalErrorException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidParameterException(InvalidParameterException),
NotFoundException(NotFoundException),
ResourceLockedException(ResourceLockedException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You are not authorized to use this operation with the given parameters.
CreationLimitExceededException(CreationLimitExceededException)
You've exceeded the notification or subscriber limit.
DuplicateRecordException(DuplicateRecordException)
The budget name already exists. Budget names must be unique within an account.
ExpiredNextTokenException(ExpiredNextTokenException)
The pagination token expired.
InternalErrorException(InternalErrorException)
An error on the server occurred during the processing of your request. Try again later.
InvalidNextTokenException(InvalidNextTokenException)
The pagination token is invalid.
InvalidParameterException(InvalidParameterException)
An error on the client occurred. Typically, the cause is an invalid input value.
NotFoundException(NotFoundException)
We can’t locate the resource that you specified.
ResourceLockedException(ResourceLockedException)
The request was received and recognized by the server, but the server rejected that particular method for the requested resource.
ServiceQuotaExceededException(ServiceQuotaExceededException)
You've reached the limit on the number of tags you can associate with a resource.
ThrottlingException(ThrottlingException)
The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
Unhandled(Unhandled)
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateBudgetActionError> for Error
impl From<CreateBudgetActionError> for Error
source§fn from(err: CreateBudgetActionError) -> Self
fn from(err: CreateBudgetActionError) -> Self
source§impl From<CreateBudgetError> for Error
impl From<CreateBudgetError> for Error
source§fn from(err: CreateBudgetError) -> Self
fn from(err: CreateBudgetError) -> Self
source§impl From<CreateNotificationError> for Error
impl From<CreateNotificationError> for Error
source§fn from(err: CreateNotificationError) -> Self
fn from(err: CreateNotificationError) -> Self
source§impl From<CreateSubscriberError> for Error
impl From<CreateSubscriberError> for Error
source§fn from(err: CreateSubscriberError) -> Self
fn from(err: CreateSubscriberError) -> Self
source§impl From<DeleteBudgetActionError> for Error
impl From<DeleteBudgetActionError> for Error
source§fn from(err: DeleteBudgetActionError) -> Self
fn from(err: DeleteBudgetActionError) -> Self
source§impl From<DeleteBudgetError> for Error
impl From<DeleteBudgetError> for Error
source§fn from(err: DeleteBudgetError) -> Self
fn from(err: DeleteBudgetError) -> Self
source§impl From<DeleteNotificationError> for Error
impl From<DeleteNotificationError> for Error
source§fn from(err: DeleteNotificationError) -> Self
fn from(err: DeleteNotificationError) -> Self
source§impl From<DeleteSubscriberError> for Error
impl From<DeleteSubscriberError> for Error
source§fn from(err: DeleteSubscriberError) -> Self
fn from(err: DeleteSubscriberError) -> Self
source§impl From<DescribeBudgetActionError> for Error
impl From<DescribeBudgetActionError> for Error
source§fn from(err: DescribeBudgetActionError) -> Self
fn from(err: DescribeBudgetActionError) -> Self
source§impl From<DescribeBudgetActionHistoriesError> for Error
impl From<DescribeBudgetActionHistoriesError> for Error
source§fn from(err: DescribeBudgetActionHistoriesError) -> Self
fn from(err: DescribeBudgetActionHistoriesError) -> Self
source§impl From<DescribeBudgetActionsForAccountError> for Error
impl From<DescribeBudgetActionsForAccountError> for Error
source§fn from(err: DescribeBudgetActionsForAccountError) -> Self
fn from(err: DescribeBudgetActionsForAccountError) -> Self
source§impl From<DescribeBudgetActionsForBudgetError> for Error
impl From<DescribeBudgetActionsForBudgetError> for Error
source§fn from(err: DescribeBudgetActionsForBudgetError) -> Self
fn from(err: DescribeBudgetActionsForBudgetError) -> Self
source§impl From<DescribeBudgetError> for Error
impl From<DescribeBudgetError> for Error
source§fn from(err: DescribeBudgetError) -> Self
fn from(err: DescribeBudgetError) -> Self
source§impl From<DescribeBudgetNotificationsForAccountError> for Error
impl From<DescribeBudgetNotificationsForAccountError> for Error
source§fn from(err: DescribeBudgetNotificationsForAccountError) -> Self
fn from(err: DescribeBudgetNotificationsForAccountError) -> Self
source§impl From<DescribeBudgetPerformanceHistoryError> for Error
impl From<DescribeBudgetPerformanceHistoryError> for Error
source§fn from(err: DescribeBudgetPerformanceHistoryError) -> Self
fn from(err: DescribeBudgetPerformanceHistoryError) -> Self
source§impl From<DescribeBudgetsError> for Error
impl From<DescribeBudgetsError> for Error
source§fn from(err: DescribeBudgetsError) -> Self
fn from(err: DescribeBudgetsError) -> Self
source§impl From<DescribeNotificationsForBudgetError> for Error
impl From<DescribeNotificationsForBudgetError> for Error
source§fn from(err: DescribeNotificationsForBudgetError) -> Self
fn from(err: DescribeNotificationsForBudgetError) -> Self
source§impl From<DescribeSubscribersForNotificationError> for Error
impl From<DescribeSubscribersForNotificationError> for Error
source§fn from(err: DescribeSubscribersForNotificationError) -> Self
fn from(err: DescribeSubscribersForNotificationError) -> Self
source§impl From<ExecuteBudgetActionError> for Error
impl From<ExecuteBudgetActionError> for Error
source§fn from(err: ExecuteBudgetActionError) -> Self
fn from(err: ExecuteBudgetActionError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl<R> From<SdkError<CreateBudgetActionError, R>> for Error
impl<R> From<SdkError<CreateBudgetActionError, R>> for Error
source§fn from(err: SdkError<CreateBudgetActionError, R>) -> Self
fn from(err: SdkError<CreateBudgetActionError, R>) -> Self
source§impl<R> From<SdkError<CreateBudgetError, R>> for Error
impl<R> From<SdkError<CreateBudgetError, R>> for Error
source§fn from(err: SdkError<CreateBudgetError, R>) -> Self
fn from(err: SdkError<CreateBudgetError, R>) -> Self
source§impl<R> From<SdkError<CreateNotificationError, R>> for Error
impl<R> From<SdkError<CreateNotificationError, R>> for Error
source§fn from(err: SdkError<CreateNotificationError, R>) -> Self
fn from(err: SdkError<CreateNotificationError, R>) -> Self
source§impl<R> From<SdkError<CreateSubscriberError, R>> for Error
impl<R> From<SdkError<CreateSubscriberError, R>> for Error
source§fn from(err: SdkError<CreateSubscriberError, R>) -> Self
fn from(err: SdkError<CreateSubscriberError, R>) -> Self
source§impl<R> From<SdkError<DeleteBudgetActionError, R>> for Error
impl<R> From<SdkError<DeleteBudgetActionError, R>> for Error
source§fn from(err: SdkError<DeleteBudgetActionError, R>) -> Self
fn from(err: SdkError<DeleteBudgetActionError, R>) -> Self
source§impl<R> From<SdkError<DeleteBudgetError, R>> for Error
impl<R> From<SdkError<DeleteBudgetError, R>> for Error
source§fn from(err: SdkError<DeleteBudgetError, R>) -> Self
fn from(err: SdkError<DeleteBudgetError, R>) -> Self
source§impl<R> From<SdkError<DeleteNotificationError, R>> for Error
impl<R> From<SdkError<DeleteNotificationError, R>> for Error
source§fn from(err: SdkError<DeleteNotificationError, R>) -> Self
fn from(err: SdkError<DeleteNotificationError, R>) -> Self
source§impl<R> From<SdkError<DeleteSubscriberError, R>> for Error
impl<R> From<SdkError<DeleteSubscriberError, R>> for Error
source§fn from(err: SdkError<DeleteSubscriberError, R>) -> Self
fn from(err: SdkError<DeleteSubscriberError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetActionError, R>> for Error
impl<R> From<SdkError<DescribeBudgetActionError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetActionError, R>) -> Self
fn from(err: SdkError<DescribeBudgetActionError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetActionHistoriesError, R>> for Error
impl<R> From<SdkError<DescribeBudgetActionHistoriesError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetActionHistoriesError, R>) -> Self
fn from(err: SdkError<DescribeBudgetActionHistoriesError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetActionsForAccountError, R>> for Error
impl<R> From<SdkError<DescribeBudgetActionsForAccountError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetActionsForAccountError, R>) -> Self
fn from(err: SdkError<DescribeBudgetActionsForAccountError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetActionsForBudgetError, R>> for Error
impl<R> From<SdkError<DescribeBudgetActionsForBudgetError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetActionsForBudgetError, R>) -> Self
fn from(err: SdkError<DescribeBudgetActionsForBudgetError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetError, R>> for Error
impl<R> From<SdkError<DescribeBudgetError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetError, R>) -> Self
fn from(err: SdkError<DescribeBudgetError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetNotificationsForAccountError, R>> for Error
impl<R> From<SdkError<DescribeBudgetNotificationsForAccountError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetNotificationsForAccountError, R>) -> Self
fn from(err: SdkError<DescribeBudgetNotificationsForAccountError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetPerformanceHistoryError, R>> for Error
impl<R> From<SdkError<DescribeBudgetPerformanceHistoryError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetPerformanceHistoryError, R>) -> Self
fn from(err: SdkError<DescribeBudgetPerformanceHistoryError, R>) -> Self
source§impl<R> From<SdkError<DescribeBudgetsError, R>> for Error
impl<R> From<SdkError<DescribeBudgetsError, R>> for Error
source§fn from(err: SdkError<DescribeBudgetsError, R>) -> Self
fn from(err: SdkError<DescribeBudgetsError, R>) -> Self
source§impl<R> From<SdkError<DescribeNotificationsForBudgetError, R>> for Error
impl<R> From<SdkError<DescribeNotificationsForBudgetError, R>> for Error
source§fn from(err: SdkError<DescribeNotificationsForBudgetError, R>) -> Self
fn from(err: SdkError<DescribeNotificationsForBudgetError, R>) -> Self
source§impl<R> From<SdkError<DescribeSubscribersForNotificationError, R>> for Error
impl<R> From<SdkError<DescribeSubscribersForNotificationError, R>> for Error
source§fn from(err: SdkError<DescribeSubscribersForNotificationError, R>) -> Self
fn from(err: SdkError<DescribeSubscribersForNotificationError, R>) -> Self
source§impl<R> From<SdkError<ExecuteBudgetActionError, R>> for Error
impl<R> From<SdkError<ExecuteBudgetActionError, R>> for Error
source§fn from(err: SdkError<ExecuteBudgetActionError, R>) -> Self
fn from(err: SdkError<ExecuteBudgetActionError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateBudgetActionError, R>> for Error
impl<R> From<SdkError<UpdateBudgetActionError, R>> for Error
source§fn from(err: SdkError<UpdateBudgetActionError, R>) -> Self
fn from(err: SdkError<UpdateBudgetActionError, R>) -> Self
source§impl<R> From<SdkError<UpdateBudgetError, R>> for Error
impl<R> From<SdkError<UpdateBudgetError, R>> for Error
source§fn from(err: SdkError<UpdateBudgetError, R>) -> Self
fn from(err: SdkError<UpdateBudgetError, R>) -> Self
source§impl<R> From<SdkError<UpdateNotificationError, R>> for Error
impl<R> From<SdkError<UpdateNotificationError, R>> for Error
source§fn from(err: SdkError<UpdateNotificationError, R>) -> Self
fn from(err: SdkError<UpdateNotificationError, R>) -> Self
source§impl<R> From<SdkError<UpdateSubscriberError, R>> for Error
impl<R> From<SdkError<UpdateSubscriberError, R>> for Error
source§fn from(err: SdkError<UpdateSubscriberError, R>) -> Self
fn from(err: SdkError<UpdateSubscriberError, R>) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateBudgetActionError> for Error
impl From<UpdateBudgetActionError> for Error
source§fn from(err: UpdateBudgetActionError) -> Self
fn from(err: UpdateBudgetActionError) -> Self
source§impl From<UpdateBudgetError> for Error
impl From<UpdateBudgetError> for Error
source§fn from(err: UpdateBudgetError) -> Self
fn from(err: UpdateBudgetError) -> Self
source§impl From<UpdateNotificationError> for Error
impl From<UpdateNotificationError> for Error
source§fn from(err: UpdateNotificationError) -> Self
fn from(err: UpdateNotificationError) -> Self
source§impl From<UpdateSubscriberError> for Error
impl From<UpdateSubscriberError> for Error
source§fn from(err: UpdateSubscriberError) -> Self
fn from(err: UpdateSubscriberError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
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