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
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.
§

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)

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<BatchGetTracesError> for Error

source§

fn from(err: BatchGetTracesError) -> Self

Converts to this type from the input type.
source§

impl From<CreateGroupError> for Error

source§

fn from(err: CreateGroupError) -> Self

Converts to this type from the input type.
source§

impl From<CreateSamplingRuleError> for Error

source§

fn from(err: CreateSamplingRuleError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteGroupError> for Error

source§

fn from(err: DeleteGroupError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteResourcePolicyError> for Error

source§

fn from(err: DeleteResourcePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteSamplingRuleError> for Error

source§

fn from(err: DeleteSamplingRuleError) -> Self

Converts to this type from the input type.
source§

impl From<GetEncryptionConfigError> for Error

source§

fn from(err: GetEncryptionConfigError) -> Self

Converts to this type from the input type.
source§

impl From<GetGroupError> for Error

source§

fn from(err: GetGroupError) -> Self

Converts to this type from the input type.
source§

impl From<GetGroupsError> for Error

source§

fn from(err: GetGroupsError) -> Self

Converts to this type from the input type.
source§

impl From<GetInsightError> for Error

source§

fn from(err: GetInsightError) -> Self

Converts to this type from the input type.
source§

impl From<GetInsightEventsError> for Error

source§

fn from(err: GetInsightEventsError) -> Self

Converts to this type from the input type.
source§

impl From<GetInsightImpactGraphError> for Error

source§

fn from(err: GetInsightImpactGraphError) -> Self

Converts to this type from the input type.
source§

impl From<GetInsightSummariesError> for Error

source§

fn from(err: GetInsightSummariesError) -> Self

Converts to this type from the input type.
source§

impl From<GetSamplingRulesError> for Error

source§

fn from(err: GetSamplingRulesError) -> Self

Converts to this type from the input type.
source§

impl From<GetSamplingStatisticSummariesError> for Error

source§

fn from(err: GetSamplingStatisticSummariesError) -> Self

Converts to this type from the input type.
source§

impl From<GetSamplingTargetsError> for Error

source§

fn from(err: GetSamplingTargetsError) -> Self

Converts to this type from the input type.
source§

impl From<GetServiceGraphError> for Error

source§

fn from(err: GetServiceGraphError) -> Self

Converts to this type from the input type.
source§

impl From<GetTimeSeriesServiceStatisticsError> for Error

source§

fn from(err: GetTimeSeriesServiceStatisticsError) -> Self

Converts to this type from the input type.
source§

impl From<GetTraceGraphError> for Error

source§

fn from(err: GetTraceGraphError) -> Self

Converts to this type from the input type.
source§

impl From<GetTraceSummariesError> for Error

source§

fn from(err: GetTraceSummariesError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourcePoliciesError> for Error

source§

fn from(err: ListResourcePoliciesError) -> 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<PutEncryptionConfigError> for Error

source§

fn from(err: PutEncryptionConfigError) -> Self

Converts to this type from the input type.
source§

impl From<PutResourcePolicyError> for Error

source§

fn from(err: PutResourcePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<PutTelemetryRecordsError> for Error

source§

fn from(err: PutTelemetryRecordsError) -> Self

Converts to this type from the input type.
source§

impl From<PutTraceSegmentsError> for Error

source§

fn from(err: PutTraceSegmentsError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere 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<PutEncryptionConfigError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Errorwhere 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 Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<UpdateSamplingRuleError, R>) -> 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 From<UpdateGroupError> for Error

source§

fn from(err: UpdateGroupError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateSamplingRuleError> for Error

source§

fn from(err: UpdateSamplingRuleError) -> 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