Enum aws_sdk_machinelearning::Error
source · #[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)
👎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 Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AddTagsError> for Error
impl From<AddTagsError> for Error
source§fn from(err: AddTagsError) -> Self
fn from(err: AddTagsError) -> Self
Converts to this type from the input type.
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl From<CreateBatchPredictionError> for Error
impl From<CreateBatchPredictionError> for Error
source§fn from(err: CreateBatchPredictionError) -> Self
fn from(err: CreateBatchPredictionError) -> Self
Converts to this type from the input type.
source§impl From<CreateDataSourceFromRDSError> for Error
impl From<CreateDataSourceFromRDSError> for Error
source§fn from(err: CreateDataSourceFromRDSError) -> Self
fn from(err: CreateDataSourceFromRDSError) -> Self
Converts to this type from the input type.
source§impl From<CreateDataSourceFromRedshiftError> for Error
impl From<CreateDataSourceFromRedshiftError> for Error
source§fn from(err: CreateDataSourceFromRedshiftError) -> Self
fn from(err: CreateDataSourceFromRedshiftError) -> Self
Converts to this type from the input type.
source§impl From<CreateDataSourceFromS3Error> for Error
impl From<CreateDataSourceFromS3Error> for Error
source§fn from(err: CreateDataSourceFromS3Error) -> Self
fn from(err: CreateDataSourceFromS3Error) -> Self
Converts to this type from the input type.
source§impl From<CreateEvaluationError> for Error
impl From<CreateEvaluationError> for Error
source§fn from(err: CreateEvaluationError) -> Self
fn from(err: CreateEvaluationError) -> Self
Converts to this type from the input type.
source§impl From<CreateMLModelError> for Error
impl From<CreateMLModelError> for Error
source§fn from(err: CreateMLModelError) -> Self
fn from(err: CreateMLModelError) -> Self
Converts to this type from the input type.
source§impl From<CreateRealtimeEndpointError> for Error
impl From<CreateRealtimeEndpointError> for Error
source§fn from(err: CreateRealtimeEndpointError) -> Self
fn from(err: CreateRealtimeEndpointError) -> Self
Converts to this type from the input type.
source§impl From<DeleteBatchPredictionError> for Error
impl From<DeleteBatchPredictionError> for Error
source§fn from(err: DeleteBatchPredictionError) -> Self
fn from(err: DeleteBatchPredictionError) -> Self
Converts to this type from the input type.
source§impl From<DeleteDataSourceError> for Error
impl From<DeleteDataSourceError> for Error
source§fn from(err: DeleteDataSourceError) -> Self
fn from(err: DeleteDataSourceError) -> Self
Converts to this type from the input type.
source§impl From<DeleteEvaluationError> for Error
impl From<DeleteEvaluationError> for Error
source§fn from(err: DeleteEvaluationError) -> Self
fn from(err: DeleteEvaluationError) -> Self
Converts to this type from the input type.
source§impl From<DeleteMLModelError> for Error
impl From<DeleteMLModelError> for Error
source§fn from(err: DeleteMLModelError) -> Self
fn from(err: DeleteMLModelError) -> Self
Converts to this type from the input type.
source§impl From<DeleteRealtimeEndpointError> for Error
impl From<DeleteRealtimeEndpointError> for Error
source§fn from(err: DeleteRealtimeEndpointError) -> Self
fn from(err: DeleteRealtimeEndpointError) -> Self
Converts to this type from the input type.
source§impl From<DeleteTagsError> for Error
impl From<DeleteTagsError> for Error
source§fn from(err: DeleteTagsError) -> Self
fn from(err: DeleteTagsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeBatchPredictionsError> for Error
impl From<DescribeBatchPredictionsError> for Error
source§fn from(err: DescribeBatchPredictionsError) -> Self
fn from(err: DescribeBatchPredictionsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeDataSourcesError> for Error
impl From<DescribeDataSourcesError> for Error
source§fn from(err: DescribeDataSourcesError) -> Self
fn from(err: DescribeDataSourcesError) -> Self
Converts to this type from the input type.
source§impl From<DescribeEvaluationsError> for Error
impl From<DescribeEvaluationsError> for Error
source§fn from(err: DescribeEvaluationsError) -> Self
fn from(err: DescribeEvaluationsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeMLModelsError> for Error
impl From<DescribeMLModelsError> for Error
source§fn from(err: DescribeMLModelsError) -> Self
fn from(err: DescribeMLModelsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeTagsError> for Error
impl From<DescribeTagsError> for Error
source§fn from(err: DescribeTagsError) -> Self
fn from(err: DescribeTagsError) -> Self
Converts to this type from the input type.
source§impl From<GetBatchPredictionError> for Error
impl From<GetBatchPredictionError> for Error
source§fn from(err: GetBatchPredictionError) -> Self
fn from(err: GetBatchPredictionError) -> Self
Converts to this type from the input type.
source§impl From<GetDataSourceError> for Error
impl From<GetDataSourceError> for Error
source§fn from(err: GetDataSourceError) -> Self
fn from(err: GetDataSourceError) -> Self
Converts to this type from the input type.
source§impl From<GetEvaluationError> for Error
impl From<GetEvaluationError> for Error
source§fn from(err: GetEvaluationError) -> Self
fn from(err: GetEvaluationError) -> Self
Converts to this type from the input type.
source§impl From<GetMLModelError> for Error
impl From<GetMLModelError> for Error
source§fn from(err: GetMLModelError) -> Self
fn from(err: GetMLModelError) -> Self
Converts to this type from the input type.
source§impl From<PredictError> for Error
impl From<PredictError> for Error
source§fn from(err: PredictError) -> Self
fn from(err: PredictError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<AddTagsError, R>> for Error
impl<R> From<SdkError<AddTagsError, R>> for Error
source§fn from(err: SdkError<AddTagsError, R>) -> Self
fn from(err: SdkError<AddTagsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateBatchPredictionError, R>> for Error
impl<R> From<SdkError<CreateBatchPredictionError, R>> for Error
source§fn from(err: SdkError<CreateBatchPredictionError, R>) -> Self
fn from(err: SdkError<CreateBatchPredictionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateDataSourceFromRDSError, R>> for Error
impl<R> From<SdkError<CreateDataSourceFromRDSError, R>> for Error
source§fn from(err: SdkError<CreateDataSourceFromRDSError, R>) -> Self
fn from(err: SdkError<CreateDataSourceFromRDSError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateDataSourceFromRedshiftError, R>> for Error
impl<R> From<SdkError<CreateDataSourceFromRedshiftError, R>> for Error
source§fn from(err: SdkError<CreateDataSourceFromRedshiftError, R>) -> Self
fn from(err: SdkError<CreateDataSourceFromRedshiftError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateDataSourceFromS3Error, R>> for Error
impl<R> From<SdkError<CreateDataSourceFromS3Error, R>> for Error
source§fn from(err: SdkError<CreateDataSourceFromS3Error, R>) -> Self
fn from(err: SdkError<CreateDataSourceFromS3Error, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateEvaluationError, R>> for Error
impl<R> From<SdkError<CreateEvaluationError, R>> for Error
source§fn from(err: SdkError<CreateEvaluationError, R>) -> Self
fn from(err: SdkError<CreateEvaluationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateMLModelError, R>> for Error
impl<R> From<SdkError<CreateMLModelError, R>> for Error
source§fn from(err: SdkError<CreateMLModelError, R>) -> Self
fn from(err: SdkError<CreateMLModelError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateRealtimeEndpointError, R>> for Error
impl<R> From<SdkError<CreateRealtimeEndpointError, R>> for Error
source§fn from(err: SdkError<CreateRealtimeEndpointError, R>) -> Self
fn from(err: SdkError<CreateRealtimeEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteBatchPredictionError, R>> for Error
impl<R> From<SdkError<DeleteBatchPredictionError, R>> for Error
source§fn from(err: SdkError<DeleteBatchPredictionError, R>) -> Self
fn from(err: SdkError<DeleteBatchPredictionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteDataSourceError, R>> for Error
impl<R> From<SdkError<DeleteDataSourceError, R>> for Error
source§fn from(err: SdkError<DeleteDataSourceError, R>) -> Self
fn from(err: SdkError<DeleteDataSourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteEvaluationError, R>> for Error
impl<R> From<SdkError<DeleteEvaluationError, R>> for Error
source§fn from(err: SdkError<DeleteEvaluationError, R>) -> Self
fn from(err: SdkError<DeleteEvaluationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteMLModelError, R>> for Error
impl<R> From<SdkError<DeleteMLModelError, R>> for Error
source§fn from(err: SdkError<DeleteMLModelError, R>) -> Self
fn from(err: SdkError<DeleteMLModelError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteRealtimeEndpointError, R>> for Error
impl<R> From<SdkError<DeleteRealtimeEndpointError, R>> for Error
source§fn from(err: SdkError<DeleteRealtimeEndpointError, R>) -> Self
fn from(err: SdkError<DeleteRealtimeEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteTagsError, R>> for Error
impl<R> From<SdkError<DeleteTagsError, R>> for Error
source§fn from(err: SdkError<DeleteTagsError, R>) -> Self
fn from(err: SdkError<DeleteTagsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeBatchPredictionsError, R>> for Error
impl<R> From<SdkError<DescribeBatchPredictionsError, R>> for Error
source§fn from(err: SdkError<DescribeBatchPredictionsError, R>) -> Self
fn from(err: SdkError<DescribeBatchPredictionsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeDataSourcesError, R>> for Error
impl<R> From<SdkError<DescribeDataSourcesError, R>> for Error
source§fn from(err: SdkError<DescribeDataSourcesError, R>) -> Self
fn from(err: SdkError<DescribeDataSourcesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeEvaluationsError, R>> for Error
impl<R> From<SdkError<DescribeEvaluationsError, R>> for Error
source§fn from(err: SdkError<DescribeEvaluationsError, R>) -> Self
fn from(err: SdkError<DescribeEvaluationsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeMLModelsError, R>> for Error
impl<R> From<SdkError<DescribeMLModelsError, R>> for Error
source§fn from(err: SdkError<DescribeMLModelsError, R>) -> Self
fn from(err: SdkError<DescribeMLModelsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeTagsError, R>> for Error
impl<R> From<SdkError<DescribeTagsError, R>> for Error
source§fn from(err: SdkError<DescribeTagsError, R>) -> Self
fn from(err: SdkError<DescribeTagsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetBatchPredictionError, R>> for Error
impl<R> From<SdkError<GetBatchPredictionError, R>> for Error
source§fn from(err: SdkError<GetBatchPredictionError, R>) -> Self
fn from(err: SdkError<GetBatchPredictionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetDataSourceError, R>> for Error
impl<R> From<SdkError<GetDataSourceError, R>> for Error
source§fn from(err: SdkError<GetDataSourceError, R>) -> Self
fn from(err: SdkError<GetDataSourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetEvaluationError, R>> for Error
impl<R> From<SdkError<GetEvaluationError, R>> for Error
source§fn from(err: SdkError<GetEvaluationError, R>) -> Self
fn from(err: SdkError<GetEvaluationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetMLModelError, R>> for Error
impl<R> From<SdkError<GetMLModelError, R>> for Error
source§fn from(err: SdkError<GetMLModelError, R>) -> Self
fn from(err: SdkError<GetMLModelError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<PredictError, R>> for Error
impl<R> From<SdkError<PredictError, R>> for Error
source§fn from(err: SdkError<PredictError, R>) -> Self
fn from(err: SdkError<PredictError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateBatchPredictionError, R>> for Error
impl<R> From<SdkError<UpdateBatchPredictionError, R>> for Error
source§fn from(err: SdkError<UpdateBatchPredictionError, R>) -> Self
fn from(err: SdkError<UpdateBatchPredictionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateDataSourceError, R>> for Error
impl<R> From<SdkError<UpdateDataSourceError, R>> for Error
source§fn from(err: SdkError<UpdateDataSourceError, R>) -> Self
fn from(err: SdkError<UpdateDataSourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateEvaluationError, R>> for Error
impl<R> From<SdkError<UpdateEvaluationError, R>> for Error
source§fn from(err: SdkError<UpdateEvaluationError, R>) -> Self
fn from(err: SdkError<UpdateEvaluationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateMLModelError, R>> for Error
impl<R> From<SdkError<UpdateMLModelError, R>> for Error
source§fn from(err: SdkError<UpdateMLModelError, R>) -> Self
fn from(err: SdkError<UpdateMLModelError, R>) -> Self
Converts to this type from the input type.
source§impl From<UpdateBatchPredictionError> for Error
impl From<UpdateBatchPredictionError> for Error
source§fn from(err: UpdateBatchPredictionError) -> Self
fn from(err: UpdateBatchPredictionError) -> Self
Converts to this type from the input type.
source§impl From<UpdateDataSourceError> for Error
impl From<UpdateDataSourceError> for Error
source§fn from(err: UpdateDataSourceError) -> Self
fn from(err: UpdateDataSourceError) -> Self
Converts to this type from the input type.
source§impl From<UpdateEvaluationError> for Error
impl From<UpdateEvaluationError> for Error
source§fn from(err: UpdateEvaluationError) -> Self
fn from(err: UpdateEvaluationError) -> Self
Converts to this type from the input type.
source§impl From<UpdateMLModelError> for Error
impl From<UpdateMLModelError> for Error
source§fn from(err: UpdateMLModelError) -> Self
fn from(err: UpdateMLModelError) -> Self
Converts to this type from the input type.
source§impl<O, E> From<WaiterError<O, E>> for Error
impl<O, E> From<WaiterError<O, E>> for Error
source§fn from(err: WaiterError<O, E>) -> Self
fn from(err: WaiterError<O, E>) -> Self
Converts to this type from the input type.
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
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
Mutably borrows from an owned value. Read more
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>
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 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>
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 moreCreates a shared type from an unshared type.