#[non_exhaustive]
pub enum Error { IdempotentParameterMismatchException(IdempotentParameterMismatchException), InternalServerException(InternalServerException), InvalidInputException(InvalidInputException), InvalidTagException(InvalidTagException), LimitExceededException(LimitExceededException), PredictorNotMountedException(PredictorNotMountedException), ResourceNotFoundException(ResourceNotFoundException), TagLimitExceededException(TagLimitExceededException), 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.
§

IdempotentParameterMismatchException(IdempotentParameterMismatchException)

A second request to use or change an object was not allowed. This can result from retrying a request using a parameter that was not present in the original request.

§

InternalServerException(InternalServerException)

An error on the server occurred when trying to process a request.

§

InvalidInputException(InvalidInputException)

An error on the client occurred. Typically, the cause is an invalid input value.

§

InvalidTagException(InvalidTagException)

§

LimitExceededException(LimitExceededException)

The subscriber exceeded the maximum number of operations. This exception can occur when listing objects such as DataSource.

§

PredictorNotMountedException(PredictorNotMountedException)

The exception is thrown when a predict request is made to an unmounted MLModel.

§

ResourceNotFoundException(ResourceNotFoundException)

A specified resource cannot be located.

§

TagLimitExceededException(TagLimitExceededException)

§

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

source§

fn from(err: AddTagsError) -> Self

Converts to this type from the input type.
source§

impl From<BuildError> for Error

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<CreateBatchPredictionError> for Error

source§

fn from(err: CreateBatchPredictionError) -> Self

Converts to this type from the input type.
source§

impl From<CreateDataSourceFromRDSError> for Error

source§

fn from(err: CreateDataSourceFromRDSError) -> Self

Converts to this type from the input type.
source§

impl From<CreateDataSourceFromRedshiftError> for Error

source§

fn from(err: CreateDataSourceFromRedshiftError) -> Self

Converts to this type from the input type.
source§

impl From<CreateDataSourceFromS3Error> for Error

source§

fn from(err: CreateDataSourceFromS3Error) -> Self

Converts to this type from the input type.
source§

impl From<CreateEvaluationError> for Error

source§

fn from(err: CreateEvaluationError) -> Self

Converts to this type from the input type.
source§

impl From<CreateMLModelError> for Error

source§

fn from(err: CreateMLModelError) -> Self

Converts to this type from the input type.
source§

impl From<CreateRealtimeEndpointError> for Error

source§

fn from(err: CreateRealtimeEndpointError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteBatchPredictionError> for Error

source§

fn from(err: DeleteBatchPredictionError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteDataSourceError> for Error

source§

fn from(err: DeleteDataSourceError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteEvaluationError> for Error

source§

fn from(err: DeleteEvaluationError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteMLModelError> for Error

source§

fn from(err: DeleteMLModelError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRealtimeEndpointError> for Error

source§

fn from(err: DeleteRealtimeEndpointError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteTagsError> for Error

source§

fn from(err: DeleteTagsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeBatchPredictionsError> for Error

source§

fn from(err: DescribeBatchPredictionsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeDataSourcesError> for Error

source§

fn from(err: DescribeDataSourcesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeEvaluationsError> for Error

source§

fn from(err: DescribeEvaluationsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeMLModelsError> for Error

source§

fn from(err: DescribeMLModelsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeTagsError> for Error

source§

fn from(err: DescribeTagsError) -> Self

Converts to this type from the input type.
source§

impl From<GetBatchPredictionError> for Error

source§

fn from(err: GetBatchPredictionError) -> Self

Converts to this type from the input type.
source§

impl From<GetDataSourceError> for Error

source§

fn from(err: GetDataSourceError) -> Self

Converts to this type from the input type.
source§

impl From<GetEvaluationError> for Error

source§

fn from(err: GetEvaluationError) -> Self

Converts to this type from the input type.
source§

impl From<GetMLModelError> for Error

source§

fn from(err: GetMLModelError) -> Self

Converts to this type from the input type.
source§

impl From<PredictError> for Error

source§

fn from(err: PredictError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl From<UpdateBatchPredictionError> for Error

source§

fn from(err: UpdateBatchPredictionError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateDataSourceError> for Error

source§

fn from(err: UpdateDataSourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateEvaluationError> for Error

source§

fn from(err: UpdateEvaluationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateMLModelError> for Error

source§

fn from(err: UpdateMLModelError) -> 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<Unshared, Shared> IntoShared<Shared> for Unsharedwhere 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 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