Enum aws_sdk_timestreamwrite::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
InvalidEndpointException(InvalidEndpointException),
RejectedRecordsException(RejectedRecordsException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You are not authorized to perform this action.
ConflictException(ConflictException)
Timestream was unable to process this request because it contains resource that already exists.
InternalServerException(InternalServerException)
Timestream was unable to fully process this request because of an internal server error.
InvalidEndpointException(InvalidEndpointException)
The requested endpoint was not valid.
RejectedRecordsException(RejectedRecordsException)
WriteRecords would throw this exception in the following cases:
-
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:
-
Measure values are different
-
Version is not present in the request or the value of version in the new record is equal to or lower than the existing value
In this case, if Timestream rejects data, the
ExistingVersion
field in theRejectedRecords
response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than theExistingVersion
. -
-
Records with timestamps that lie outside the retention duration of the memory store.
-
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Quotas in the Amazon Timestream Developer Guide.
ResourceNotFoundException(ResourceNotFoundException)
The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The instance quota of resource exceeded for this account.
ThrottlingException(ThrottlingException)
Too many requests were made by a user and they exceeded the service quotas. The request was throttled.
ValidationException(ValidationException)
An invalid or malformed request.
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<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateBatchLoadTaskError> for Error
impl From<CreateBatchLoadTaskError> for Error
source§fn from(err: CreateBatchLoadTaskError) -> Self
fn from(err: CreateBatchLoadTaskError) -> Self
source§impl From<CreateDatabaseError> for Error
impl From<CreateDatabaseError> for Error
source§fn from(err: CreateDatabaseError) -> Self
fn from(err: CreateDatabaseError) -> Self
source§impl From<CreateTableError> for Error
impl From<CreateTableError> for Error
source§fn from(err: CreateTableError) -> Self
fn from(err: CreateTableError) -> Self
source§impl From<DeleteDatabaseError> for Error
impl From<DeleteDatabaseError> for Error
source§fn from(err: DeleteDatabaseError) -> Self
fn from(err: DeleteDatabaseError) -> Self
source§impl From<DeleteTableError> for Error
impl From<DeleteTableError> for Error
source§fn from(err: DeleteTableError) -> Self
fn from(err: DeleteTableError) -> Self
source§impl From<DescribeBatchLoadTaskError> for Error
impl From<DescribeBatchLoadTaskError> for Error
source§fn from(err: DescribeBatchLoadTaskError) -> Self
fn from(err: DescribeBatchLoadTaskError) -> Self
source§impl From<DescribeDatabaseError> for Error
impl From<DescribeDatabaseError> for Error
source§fn from(err: DescribeDatabaseError) -> Self
fn from(err: DescribeDatabaseError) -> Self
source§impl From<DescribeEndpointsError> for Error
impl From<DescribeEndpointsError> for Error
source§fn from(err: DescribeEndpointsError) -> Self
fn from(err: DescribeEndpointsError) -> Self
source§impl From<DescribeTableError> for Error
impl From<DescribeTableError> for Error
source§fn from(err: DescribeTableError) -> Self
fn from(err: DescribeTableError) -> Self
source§impl From<ListBatchLoadTasksError> for Error
impl From<ListBatchLoadTasksError> for Error
source§fn from(err: ListBatchLoadTasksError) -> Self
fn from(err: ListBatchLoadTasksError) -> Self
source§impl From<ListDatabasesError> for Error
impl From<ListDatabasesError> for Error
source§fn from(err: ListDatabasesError) -> Self
fn from(err: ListDatabasesError) -> Self
source§impl From<ListTablesError> for Error
impl From<ListTablesError> for Error
source§fn from(err: ListTablesError) -> Self
fn from(err: ListTablesError) -> 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<ResumeBatchLoadTaskError> for Error
impl From<ResumeBatchLoadTaskError> for Error
source§fn from(err: ResumeBatchLoadTaskError) -> Self
fn from(err: ResumeBatchLoadTaskError) -> Self
source§impl<R> From<SdkError<CreateBatchLoadTaskError, R>> for Error
impl<R> From<SdkError<CreateBatchLoadTaskError, R>> for Error
source§fn from(err: SdkError<CreateBatchLoadTaskError, R>) -> Self
fn from(err: SdkError<CreateBatchLoadTaskError, R>) -> Self
source§impl<R> From<SdkError<CreateDatabaseError, R>> for Error
impl<R> From<SdkError<CreateDatabaseError, R>> for Error
source§fn from(err: SdkError<CreateDatabaseError, R>) -> Self
fn from(err: SdkError<CreateDatabaseError, R>) -> Self
source§impl<R> From<SdkError<CreateTableError, R>> for Error
impl<R> From<SdkError<CreateTableError, R>> for Error
source§fn from(err: SdkError<CreateTableError, R>) -> Self
fn from(err: SdkError<CreateTableError, R>) -> Self
source§impl<R> From<SdkError<DeleteDatabaseError, R>> for Error
impl<R> From<SdkError<DeleteDatabaseError, R>> for Error
source§fn from(err: SdkError<DeleteDatabaseError, R>) -> Self
fn from(err: SdkError<DeleteDatabaseError, R>) -> Self
source§impl<R> From<SdkError<DeleteTableError, R>> for Error
impl<R> From<SdkError<DeleteTableError, R>> for Error
source§fn from(err: SdkError<DeleteTableError, R>) -> Self
fn from(err: SdkError<DeleteTableError, R>) -> Self
source§impl<R> From<SdkError<DescribeBatchLoadTaskError, R>> for Error
impl<R> From<SdkError<DescribeBatchLoadTaskError, R>> for Error
source§fn from(err: SdkError<DescribeBatchLoadTaskError, R>) -> Self
fn from(err: SdkError<DescribeBatchLoadTaskError, R>) -> Self
source§impl<R> From<SdkError<DescribeDatabaseError, R>> for Error
impl<R> From<SdkError<DescribeDatabaseError, R>> for Error
source§fn from(err: SdkError<DescribeDatabaseError, R>) -> Self
fn from(err: SdkError<DescribeDatabaseError, R>) -> Self
source§impl<R> From<SdkError<DescribeEndpointsError, R>> for Error
impl<R> From<SdkError<DescribeEndpointsError, R>> for Error
source§fn from(err: SdkError<DescribeEndpointsError, R>) -> Self
fn from(err: SdkError<DescribeEndpointsError, R>) -> Self
source§impl<R> From<SdkError<DescribeTableError, R>> for Error
impl<R> From<SdkError<DescribeTableError, R>> for Error
source§fn from(err: SdkError<DescribeTableError, R>) -> Self
fn from(err: SdkError<DescribeTableError, R>) -> Self
source§impl<R> From<SdkError<ListBatchLoadTasksError, R>> for Error
impl<R> From<SdkError<ListBatchLoadTasksError, R>> for Error
source§fn from(err: SdkError<ListBatchLoadTasksError, R>) -> Self
fn from(err: SdkError<ListBatchLoadTasksError, R>) -> Self
source§impl<R> From<SdkError<ListDatabasesError, R>> for Error
impl<R> From<SdkError<ListDatabasesError, R>> for Error
source§fn from(err: SdkError<ListDatabasesError, R>) -> Self
fn from(err: SdkError<ListDatabasesError, R>) -> Self
source§impl<R> From<SdkError<ListTablesError, R>> for Error
impl<R> From<SdkError<ListTablesError, R>> for Error
source§fn from(err: SdkError<ListTablesError, R>) -> Self
fn from(err: SdkError<ListTablesError, 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<ResumeBatchLoadTaskError, R>> for Error
impl<R> From<SdkError<ResumeBatchLoadTaskError, R>> for Error
source§fn from(err: SdkError<ResumeBatchLoadTaskError, R>) -> Self
fn from(err: SdkError<ResumeBatchLoadTaskError, 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<UpdateDatabaseError, R>> for Error
impl<R> From<SdkError<UpdateDatabaseError, R>> for Error
source§fn from(err: SdkError<UpdateDatabaseError, R>) -> Self
fn from(err: SdkError<UpdateDatabaseError, R>) -> Self
source§impl<R> From<SdkError<UpdateTableError, R>> for Error
impl<R> From<SdkError<UpdateTableError, R>> for Error
source§fn from(err: SdkError<UpdateTableError, R>) -> Self
fn from(err: SdkError<UpdateTableError, R>) -> Self
source§impl<R> From<SdkError<WriteRecordsError, R>> for Error
impl<R> From<SdkError<WriteRecordsError, R>> for Error
source§fn from(err: SdkError<WriteRecordsError, R>) -> Self
fn from(err: SdkError<WriteRecordsError, 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<UpdateDatabaseError> for Error
impl From<UpdateDatabaseError> for Error
source§fn from(err: UpdateDatabaseError) -> Self
fn from(err: UpdateDatabaseError) -> Self
source§impl From<UpdateTableError> for Error
impl From<UpdateTableError> for Error
source§fn from(err: UpdateTableError) -> Self
fn from(err: UpdateTableError) -> Self
source§impl From<WriteRecordsError> for Error
impl From<WriteRecordsError> for Error
source§fn from(err: WriteRecordsError) -> Self
fn from(err: WriteRecordsError) -> 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