Enum aws_sdk_xray::Error
source · #[non_exhaustive]pub enum Error {
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException),
InvalidRequestException(InvalidRequestException),
LockoutPreventionException(LockoutPreventionException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
PolicyCountLimitExceededException(PolicyCountLimitExceededException),
PolicySizeLimitExceededException(PolicySizeLimitExceededException),
ResourceNotFoundException(ResourceNotFoundException),
RuleLimitExceededException(RuleLimitExceededException),
ThrottledException(ThrottledException),
TooManyTagsException(TooManyTagsException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException)
A policy revision id was provided which does not match the latest policy revision. This exception is also if a policy revision id of 0 is provided via PutResourcePolicy
and a policy with the same name already exists.
InvalidRequestException(InvalidRequestException)
The request is missing required parameters or has invalid parameters.
LockoutPreventionException(LockoutPreventionException)
The provided resource policy would prevent the caller of this request from calling PutResourcePolicy in the future.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
Invalid policy document provided in request.
PolicyCountLimitExceededException(PolicyCountLimitExceededException)
Exceeded the maximum number of resource policies for a target Amazon Web Services account.
PolicySizeLimitExceededException(PolicySizeLimitExceededException)
Exceeded the maximum size for a resource policy.
ResourceNotFoundException(ResourceNotFoundException)
The resource was not found. Verify that the name or Amazon Resource Name (ARN) of the resource is correct.
RuleLimitExceededException(RuleLimitExceededException)
You have reached the maximum number of sampling rules.
ThrottledException(ThrottledException)
The request exceeds the maximum number of requests per second.
TooManyTagsException(TooManyTagsException)
You have exceeded the maximum number of tags you can apply to this resource.
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<BatchGetTracesError> for Error
impl From<BatchGetTracesError> for Error
source§fn from(err: BatchGetTracesError) -> Self
fn from(err: BatchGetTracesError) -> Self
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<CreateGroupError> for Error
impl From<CreateGroupError> for Error
source§fn from(err: CreateGroupError) -> Self
fn from(err: CreateGroupError) -> Self
source§impl From<CreateSamplingRuleError> for Error
impl From<CreateSamplingRuleError> for Error
source§fn from(err: CreateSamplingRuleError) -> Self
fn from(err: CreateSamplingRuleError) -> Self
source§impl From<DeleteGroupError> for Error
impl From<DeleteGroupError> for Error
source§fn from(err: DeleteGroupError) -> Self
fn from(err: DeleteGroupError) -> Self
source§impl From<DeleteResourcePolicyError> for Error
impl From<DeleteResourcePolicyError> for Error
source§fn from(err: DeleteResourcePolicyError) -> Self
fn from(err: DeleteResourcePolicyError) -> Self
source§impl From<DeleteSamplingRuleError> for Error
impl From<DeleteSamplingRuleError> for Error
source§fn from(err: DeleteSamplingRuleError) -> Self
fn from(err: DeleteSamplingRuleError) -> Self
source§impl From<GetEncryptionConfigError> for Error
impl From<GetEncryptionConfigError> for Error
source§fn from(err: GetEncryptionConfigError) -> Self
fn from(err: GetEncryptionConfigError) -> Self
source§impl From<GetGroupError> for Error
impl From<GetGroupError> for Error
source§fn from(err: GetGroupError) -> Self
fn from(err: GetGroupError) -> Self
source§impl From<GetGroupsError> for Error
impl From<GetGroupsError> for Error
source§fn from(err: GetGroupsError) -> Self
fn from(err: GetGroupsError) -> Self
source§impl From<GetInsightError> for Error
impl From<GetInsightError> for Error
source§fn from(err: GetInsightError) -> Self
fn from(err: GetInsightError) -> Self
source§impl From<GetInsightEventsError> for Error
impl From<GetInsightEventsError> for Error
source§fn from(err: GetInsightEventsError) -> Self
fn from(err: GetInsightEventsError) -> Self
source§impl From<GetInsightImpactGraphError> for Error
impl From<GetInsightImpactGraphError> for Error
source§fn from(err: GetInsightImpactGraphError) -> Self
fn from(err: GetInsightImpactGraphError) -> Self
source§impl From<GetInsightSummariesError> for Error
impl From<GetInsightSummariesError> for Error
source§fn from(err: GetInsightSummariesError) -> Self
fn from(err: GetInsightSummariesError) -> Self
source§impl From<GetSamplingRulesError> for Error
impl From<GetSamplingRulesError> for Error
source§fn from(err: GetSamplingRulesError) -> Self
fn from(err: GetSamplingRulesError) -> Self
source§impl From<GetSamplingStatisticSummariesError> for Error
impl From<GetSamplingStatisticSummariesError> for Error
source§fn from(err: GetSamplingStatisticSummariesError) -> Self
fn from(err: GetSamplingStatisticSummariesError) -> Self
source§impl From<GetSamplingTargetsError> for Error
impl From<GetSamplingTargetsError> for Error
source§fn from(err: GetSamplingTargetsError) -> Self
fn from(err: GetSamplingTargetsError) -> Self
source§impl From<GetServiceGraphError> for Error
impl From<GetServiceGraphError> for Error
source§fn from(err: GetServiceGraphError) -> Self
fn from(err: GetServiceGraphError) -> Self
source§impl From<GetTimeSeriesServiceStatisticsError> for Error
impl From<GetTimeSeriesServiceStatisticsError> for Error
source§fn from(err: GetTimeSeriesServiceStatisticsError) -> Self
fn from(err: GetTimeSeriesServiceStatisticsError) -> Self
source§impl From<GetTraceGraphError> for Error
impl From<GetTraceGraphError> for Error
source§fn from(err: GetTraceGraphError) -> Self
fn from(err: GetTraceGraphError) -> Self
source§impl From<GetTraceSummariesError> for Error
impl From<GetTraceSummariesError> for Error
source§fn from(err: GetTraceSummariesError) -> Self
fn from(err: GetTraceSummariesError) -> Self
source§impl From<ListResourcePoliciesError> for Error
impl From<ListResourcePoliciesError> for Error
source§fn from(err: ListResourcePoliciesError) -> Self
fn from(err: ListResourcePoliciesError) -> 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 From<PutEncryptionConfigError> for Error
impl From<PutEncryptionConfigError> for Error
source§fn from(err: PutEncryptionConfigError) -> Self
fn from(err: PutEncryptionConfigError) -> Self
source§impl From<PutResourcePolicyError> for Error
impl From<PutResourcePolicyError> for Error
source§fn from(err: PutResourcePolicyError) -> Self
fn from(err: PutResourcePolicyError) -> Self
source§impl From<PutTelemetryRecordsError> for Error
impl From<PutTelemetryRecordsError> for Error
source§fn from(err: PutTelemetryRecordsError) -> Self
fn from(err: PutTelemetryRecordsError) -> Self
source§impl From<PutTraceSegmentsError> for Error
impl From<PutTraceSegmentsError> for Error
source§fn from(err: PutTraceSegmentsError) -> Self
fn from(err: PutTraceSegmentsError) -> Self
source§impl<R> From<SdkError<BatchGetTracesError, R>> for Error
impl<R> From<SdkError<BatchGetTracesError, R>> for Error
source§fn from(err: SdkError<BatchGetTracesError, R>) -> Self
fn from(err: SdkError<BatchGetTracesError, R>) -> Self
source§impl<R> From<SdkError<CreateGroupError, R>> for Error
impl<R> From<SdkError<CreateGroupError, R>> for Error
source§fn from(err: SdkError<CreateGroupError, R>) -> Self
fn from(err: SdkError<CreateGroupError, R>) -> Self
source§impl<R> From<SdkError<CreateSamplingRuleError, R>> for Error
impl<R> From<SdkError<CreateSamplingRuleError, R>> for Error
source§fn from(err: SdkError<CreateSamplingRuleError, R>) -> Self
fn from(err: SdkError<CreateSamplingRuleError, R>) -> Self
source§impl<R> From<SdkError<DeleteGroupError, R>> for Error
impl<R> From<SdkError<DeleteGroupError, R>> for Error
source§fn from(err: SdkError<DeleteGroupError, R>) -> Self
fn from(err: SdkError<DeleteGroupError, R>) -> Self
source§impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
source§fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<DeleteSamplingRuleError, R>> for Error
impl<R> From<SdkError<DeleteSamplingRuleError, R>> for Error
source§fn from(err: SdkError<DeleteSamplingRuleError, R>) -> Self
fn from(err: SdkError<DeleteSamplingRuleError, R>) -> Self
source§impl<R> From<SdkError<GetEncryptionConfigError, R>> for Error
impl<R> From<SdkError<GetEncryptionConfigError, R>> for Error
source§fn from(err: SdkError<GetEncryptionConfigError, R>) -> Self
fn from(err: SdkError<GetEncryptionConfigError, R>) -> Self
source§impl<R> From<SdkError<GetGroupError, R>> for Error
impl<R> From<SdkError<GetGroupError, R>> for Error
source§fn from(err: SdkError<GetGroupError, R>) -> Self
fn from(err: SdkError<GetGroupError, R>) -> Self
source§impl<R> From<SdkError<GetGroupsError, R>> for Error
impl<R> From<SdkError<GetGroupsError, R>> for Error
source§fn from(err: SdkError<GetGroupsError, R>) -> Self
fn from(err: SdkError<GetGroupsError, R>) -> Self
source§impl<R> From<SdkError<GetInsightError, R>> for Error
impl<R> From<SdkError<GetInsightError, R>> for Error
source§fn from(err: SdkError<GetInsightError, R>) -> Self
fn from(err: SdkError<GetInsightError, R>) -> Self
source§impl<R> From<SdkError<GetInsightEventsError, R>> for Error
impl<R> From<SdkError<GetInsightEventsError, R>> for Error
source§fn from(err: SdkError<GetInsightEventsError, R>) -> Self
fn from(err: SdkError<GetInsightEventsError, R>) -> Self
source§impl<R> From<SdkError<GetInsightImpactGraphError, R>> for Error
impl<R> From<SdkError<GetInsightImpactGraphError, R>> for Error
source§fn from(err: SdkError<GetInsightImpactGraphError, R>) -> Self
fn from(err: SdkError<GetInsightImpactGraphError, R>) -> Self
source§impl<R> From<SdkError<GetInsightSummariesError, R>> for Error
impl<R> From<SdkError<GetInsightSummariesError, R>> for Error
source§fn from(err: SdkError<GetInsightSummariesError, R>) -> Self
fn from(err: SdkError<GetInsightSummariesError, R>) -> Self
source§impl<R> From<SdkError<GetSamplingRulesError, R>> for Error
impl<R> From<SdkError<GetSamplingRulesError, R>> for Error
source§fn from(err: SdkError<GetSamplingRulesError, R>) -> Self
fn from(err: SdkError<GetSamplingRulesError, R>) -> Self
source§impl<R> From<SdkError<GetSamplingStatisticSummariesError, R>> for Error
impl<R> From<SdkError<GetSamplingStatisticSummariesError, R>> for Error
source§fn from(err: SdkError<GetSamplingStatisticSummariesError, R>) -> Self
fn from(err: SdkError<GetSamplingStatisticSummariesError, R>) -> Self
source§impl<R> From<SdkError<GetSamplingTargetsError, R>> for Error
impl<R> From<SdkError<GetSamplingTargetsError, R>> for Error
source§fn from(err: SdkError<GetSamplingTargetsError, R>) -> Self
fn from(err: SdkError<GetSamplingTargetsError, R>) -> Self
source§impl<R> From<SdkError<GetServiceGraphError, R>> for Error
impl<R> From<SdkError<GetServiceGraphError, R>> for Error
source§fn from(err: SdkError<GetServiceGraphError, R>) -> Self
fn from(err: SdkError<GetServiceGraphError, R>) -> Self
source§impl<R> From<SdkError<GetTimeSeriesServiceStatisticsError, R>> for Error
impl<R> From<SdkError<GetTimeSeriesServiceStatisticsError, R>> for Error
source§fn from(err: SdkError<GetTimeSeriesServiceStatisticsError, R>) -> Self
fn from(err: SdkError<GetTimeSeriesServiceStatisticsError, R>) -> Self
source§impl<R> From<SdkError<GetTraceGraphError, R>> for Error
impl<R> From<SdkError<GetTraceGraphError, R>> for Error
source§fn from(err: SdkError<GetTraceGraphError, R>) -> Self
fn from(err: SdkError<GetTraceGraphError, R>) -> Self
source§impl<R> From<SdkError<GetTraceSummariesError, R>> for Error
impl<R> From<SdkError<GetTraceSummariesError, R>> for Error
source§fn from(err: SdkError<GetTraceSummariesError, R>) -> Self
fn from(err: SdkError<GetTraceSummariesError, R>) -> Self
source§impl<R> From<SdkError<ListResourcePoliciesError, R>> for Error
impl<R> From<SdkError<ListResourcePoliciesError, R>> for Error
source§fn from(err: SdkError<ListResourcePoliciesError, R>) -> Self
fn from(err: SdkError<ListResourcePoliciesError, 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<PutEncryptionConfigError, R>> for Error
impl<R> From<SdkError<PutEncryptionConfigError, R>> for Error
source§fn from(err: SdkError<PutEncryptionConfigError, R>) -> Self
fn from(err: SdkError<PutEncryptionConfigError, R>) -> Self
source§impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
source§fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<PutTelemetryRecordsError, R>> for Error
impl<R> From<SdkError<PutTelemetryRecordsError, R>> for Error
source§fn from(err: SdkError<PutTelemetryRecordsError, R>) -> Self
fn from(err: SdkError<PutTelemetryRecordsError, R>) -> Self
source§impl<R> From<SdkError<PutTraceSegmentsError, R>> for Error
impl<R> From<SdkError<PutTraceSegmentsError, R>> for Error
source§fn from(err: SdkError<PutTraceSegmentsError, R>) -> Self
fn from(err: SdkError<PutTraceSegmentsError, 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<UpdateGroupError, R>> for Error
impl<R> From<SdkError<UpdateGroupError, R>> for Error
source§fn from(err: SdkError<UpdateGroupError, R>) -> Self
fn from(err: SdkError<UpdateGroupError, R>) -> Self
source§impl<R> From<SdkError<UpdateSamplingRuleError, R>> for Error
impl<R> From<SdkError<UpdateSamplingRuleError, R>> for Error
source§fn from(err: SdkError<UpdateSamplingRuleError, R>) -> Self
fn from(err: SdkError<UpdateSamplingRuleError, 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<UpdateGroupError> for Error
impl From<UpdateGroupError> for Error
source§fn from(err: UpdateGroupError) -> Self
fn from(err: UpdateGroupError) -> Self
source§impl From<UpdateSamplingRuleError> for Error
impl From<UpdateSamplingRuleError> for Error
source§fn from(err: UpdateSamplingRuleError) -> Self
fn from(err: UpdateSamplingRuleError) -> 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