Enum aws_sdk_cloudwatch::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 14 variants ConcurrentModificationException(ConcurrentModificationException), DashboardInvalidInputError(DashboardInvalidInputError), DashboardNotFoundError(DashboardNotFoundError), InternalServiceFault(InternalServiceFault), InvalidFormatFault(InvalidFormatFault), InvalidNextToken(InvalidNextToken), InvalidParameterCombinationException(InvalidParameterCombinationException), InvalidParameterValueException(InvalidParameterValueException), LimitExceededException(LimitExceededException), LimitExceededFault(LimitExceededFault), MissingRequiredParameterException(MissingRequiredParameterException), ResourceNotFound(ResourceNotFound), ResourceNotFoundException(ResourceNotFoundException), 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.
§

ConcurrentModificationException(ConcurrentModificationException)

More than one process tried to modify a resource at the same time.

§

DashboardInvalidInputError(DashboardInvalidInputError)

Some part of the dashboard data is invalid.

§

DashboardNotFoundError(DashboardNotFoundError)

The specified dashboard does not exist.

§

InternalServiceFault(InternalServiceFault)

Request processing has failed due to some unknown error, exception, or failure.

§

InvalidFormatFault(InvalidFormatFault)

Data was not syntactically valid JSON.

§

InvalidNextToken(InvalidNextToken)

The next token specified is invalid.

§

InvalidParameterCombinationException(InvalidParameterCombinationException)

Parameters were used together that cannot be used together.

§

InvalidParameterValueException(InvalidParameterValueException)

The value of an input parameter is bad or out-of-range.

§

LimitExceededException(LimitExceededException)

The operation exceeded one or more limits.

§

LimitExceededFault(LimitExceededFault)

The quota for alarms for this customer has already been reached.

§

MissingRequiredParameterException(MissingRequiredParameterException)

An input parameter that is required is missing.

§

ResourceNotFound(ResourceNotFound)

The named resource does not exist.

§

ResourceNotFoundException(ResourceNotFoundException)

The named resource does not exist.

§

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 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, 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<BuildError> for Error

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAlarmsError> for Error

source§

fn from(err: DeleteAlarmsError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAnomalyDetectorError> for Error

source§

fn from(err: DeleteAnomalyDetectorError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteDashboardsError> for Error

source§

fn from(err: DeleteDashboardsError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteInsightRulesError> for Error

source§

fn from(err: DeleteInsightRulesError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteMetricStreamError> for Error

source§

fn from(err: DeleteMetricStreamError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAlarmHistoryError> for Error

source§

fn from(err: DescribeAlarmHistoryError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAlarmsError> for Error

source§

fn from(err: DescribeAlarmsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAlarmsForMetricError> for Error

source§

fn from(err: DescribeAlarmsForMetricError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAnomalyDetectorsError> for Error

source§

fn from(err: DescribeAnomalyDetectorsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeInsightRulesError> for Error

source§

fn from(err: DescribeInsightRulesError) -> Self

Converts to this type from the input type.
source§

impl From<DisableAlarmActionsError> for Error

source§

fn from(err: DisableAlarmActionsError) -> Self

Converts to this type from the input type.
source§

impl From<DisableInsightRulesError> for Error

source§

fn from(err: DisableInsightRulesError) -> Self

Converts to this type from the input type.
source§

impl From<EnableAlarmActionsError> for Error

source§

fn from(err: EnableAlarmActionsError) -> Self

Converts to this type from the input type.
source§

impl From<EnableInsightRulesError> for Error

source§

fn from(err: EnableInsightRulesError) -> Self

Converts to this type from the input type.
source§

impl From<GetDashboardError> for Error

source§

fn from(err: GetDashboardError) -> Self

Converts to this type from the input type.
source§

impl From<GetInsightRuleReportError> for Error

source§

fn from(err: GetInsightRuleReportError) -> Self

Converts to this type from the input type.
source§

impl From<GetMetricDataError> for Error

source§

fn from(err: GetMetricDataError) -> Self

Converts to this type from the input type.
source§

impl From<GetMetricStatisticsError> for Error

source§

fn from(err: GetMetricStatisticsError) -> Self

Converts to this type from the input type.
source§

impl From<GetMetricStreamError> for Error

source§

fn from(err: GetMetricStreamError) -> Self

Converts to this type from the input type.
source§

impl From<GetMetricWidgetImageError> for Error

source§

fn from(err: GetMetricWidgetImageError) -> Self

Converts to this type from the input type.
source§

impl From<ListDashboardsError> for Error

source§

fn from(err: ListDashboardsError) -> Self

Converts to this type from the input type.
source§

impl From<ListManagedInsightRulesError> for Error

source§

fn from(err: ListManagedInsightRulesError) -> Self

Converts to this type from the input type.
source§

impl From<ListMetricStreamsError> for Error

source§

fn from(err: ListMetricStreamsError) -> Self

Converts to this type from the input type.
source§

impl From<ListMetricsError> for Error

source§

fn from(err: ListMetricsError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<PutAnomalyDetectorError> for Error

source§

fn from(err: PutAnomalyDetectorError) -> Self

Converts to this type from the input type.
source§

impl From<PutCompositeAlarmError> for Error

source§

fn from(err: PutCompositeAlarmError) -> Self

Converts to this type from the input type.
source§

impl From<PutDashboardError> for Error

source§

fn from(err: PutDashboardError) -> Self

Converts to this type from the input type.
source§

impl From<PutInsightRuleError> for Error

source§

fn from(err: PutInsightRuleError) -> Self

Converts to this type from the input type.
source§

impl From<PutManagedInsightRulesError> for Error

source§

fn from(err: PutManagedInsightRulesError) -> Self

Converts to this type from the input type.
source§

impl From<PutMetricAlarmError> for Error

source§

fn from(err: PutMetricAlarmError) -> Self

Converts to this type from the input type.
source§

impl From<PutMetricDataError> for Error

source§

fn from(err: PutMetricDataError) -> Self

Converts to this type from the input type.
source§

impl From<PutMetricStreamError> for Error

source§

fn from(err: PutMetricStreamError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl From<SetAlarmStateError> for Error

source§

fn from(err: SetAlarmStateError) -> Self

Converts to this type from the input type.
source§

impl From<StartMetricStreamsError> for Error

source§

fn from(err: StartMetricStreamsError) -> Self

Converts to this type from the input type.
source§

impl From<StopMetricStreamsError> for Error

source§

fn from(err: StopMetricStreamsError) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl ProvideErrorMetadata for Error

source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
source§

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

Returns the error code if it’s available.
source§

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

Returns the error message, if there is one.
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 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<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where 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 T
where 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 T
where 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