#[non_exhaustive]pub enum GetExpenseAnalysisError {
AccessDeniedException(AccessDeniedException),
InternalServerError(InternalServerError),
InvalidJobIdException(InvalidJobIdException),
InvalidKmsKeyException(InvalidKmsKeyException),
InvalidParameterException(InvalidParameterException),
InvalidS3ObjectException(InvalidS3ObjectException),
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
Error type for the GetExpenseAnalysisError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation.
InternalServerError(InternalServerError)
Amazon Textract experienced a service issue. Try your call again.
InvalidJobIdException(InvalidJobIdException)
An invalid job identifier was passed to an asynchronous analysis operation.
InvalidKmsKeyException(InvalidKmsKeyException)
Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key was entered incorrectly.
InvalidParameterException(InvalidParameterException)
An input parameter violated a constraint. For example, in synchronous operations, an InvalidParameterException
exception occurs when neither of the S3Object
or Bytes
values are supplied in the Document
request parameter. Validate your parameter before calling the API operation again.
InvalidS3ObjectException(InvalidS3ObjectException)
Amazon Textract is unable to access the S3 object that's specified in the request. for more information, Configure Access to Amazon S3 For troubleshooting information, see Troubleshooting Amazon S3
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException)
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
ThrottlingException(ThrottlingException)
Amazon Textract is temporarily unable to process the request. Try your call again.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl GetExpenseAnalysisError
impl GetExpenseAnalysisError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the GetExpenseAnalysisError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetExpenseAnalysisError::Unhandled
variant from a ::aws_smithy_types::error::ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::AccessDeniedException
.
sourcepub fn is_internal_server_error(&self) -> bool
pub fn is_internal_server_error(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::InternalServerError
.
sourcepub fn is_invalid_job_id_exception(&self) -> bool
pub fn is_invalid_job_id_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::InvalidJobIdException
.
sourcepub fn is_invalid_kms_key_exception(&self) -> bool
pub fn is_invalid_kms_key_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::InvalidKmsKeyException
.
sourcepub fn is_invalid_parameter_exception(&self) -> bool
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::InvalidParameterException
.
sourcepub fn is_invalid_s3_object_exception(&self) -> bool
pub fn is_invalid_s3_object_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::InvalidS3ObjectException
.
sourcepub fn is_provisioned_throughput_exceeded_exception(&self) -> bool
pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::ProvisionedThroughputExceededException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is GetExpenseAnalysisError::ThrottlingException
.
Trait Implementations§
source§impl CreateUnhandledError for GetExpenseAnalysisError
impl CreateUnhandledError for GetExpenseAnalysisError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for GetExpenseAnalysisError
impl Debug for GetExpenseAnalysisError
source§impl Display for GetExpenseAnalysisError
impl Display for GetExpenseAnalysisError
source§impl Error for GetExpenseAnalysisError
impl Error for GetExpenseAnalysisError
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<GetExpenseAnalysisError> for Error
impl From<GetExpenseAnalysisError> for Error
source§fn from(err: GetExpenseAnalysisError) -> Self
fn from(err: GetExpenseAnalysisError) -> Self
source§impl ProvideErrorMetadata for GetExpenseAnalysisError
impl ProvideErrorMetadata for GetExpenseAnalysisError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetExpenseAnalysisError
impl RequestId for GetExpenseAnalysisError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.