Enum aws_sdk_athena::Error
source · [−]#[non_exhaustive]
pub enum Error {
InternalServerException(InternalServerException),
InvalidRequestException(InvalidRequestException),
MetadataException(MetadataException),
ResourceNotFoundException(ResourceNotFoundException),
TooManyRequestsException(TooManyRequestsException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InternalServerException(InternalServerException)
Indicates a platform issue, which may be due to a transient condition or outage.
InvalidRequestException(InvalidRequestException)
Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
MetadataException(MetadataException)
An exception that Athena received when it called a custom metastore. Occurs if the error is not caused by user input (InvalidRequestException
) or from the Athena platform (InternalServerException
). For example, if a user-created Lambda function is missing permissions, the Lambda 4XX
exception is returned in a MetadataException
.
ResourceNotFoundException(ResourceNotFoundException)
A resource, such as a workgroup, was not found.
TooManyRequestsException(TooManyRequestsException)
Indicates that the request was throttled.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<BatchGetNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchGetNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<BatchGetNamedQueryError, R>) -> Self
fn from(err: SdkError<BatchGetNamedQueryError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<BatchGetPreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchGetPreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<BatchGetPreparedStatementError, R>) -> Self
fn from(err: SdkError<BatchGetPreparedStatementError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<BatchGetQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchGetQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<BatchGetQueryExecutionError, R>) -> Self
fn from(err: SdkError<BatchGetQueryExecutionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateDataCatalogError, R>) -> Self
fn from(err: SdkError<CreateDataCatalogError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateNamedQueryError, R>) -> Self
fn from(err: SdkError<CreateNamedQueryError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreatePreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreatePreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreatePreparedStatementError, R>) -> Self
fn from(err: SdkError<CreatePreparedStatementError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateWorkGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateWorkGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateWorkGroupError, R>) -> Self
fn from(err: SdkError<CreateWorkGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteDataCatalogError, R>) -> Self
fn from(err: SdkError<DeleteDataCatalogError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteNamedQueryError, R>) -> Self
fn from(err: SdkError<DeleteNamedQueryError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeletePreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeletePreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeletePreparedStatementError, R>) -> Self
fn from(err: SdkError<DeletePreparedStatementError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteWorkGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteWorkGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteWorkGroupError, R>) -> Self
fn from(err: SdkError<DeleteWorkGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetDataCatalogError, R>) -> Self
fn from(err: SdkError<GetDataCatalogError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetDatabaseError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetDatabaseError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetDatabaseError, R>) -> Self
fn from(err: SdkError<GetDatabaseError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetNamedQueryError, R>) -> Self
fn from(err: SdkError<GetNamedQueryError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetPreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetPreparedStatementError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetPreparedStatementError, R>) -> Self
fn from(err: SdkError<GetPreparedStatementError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetQueryExecutionError, R>) -> Self
fn from(err: SdkError<GetQueryExecutionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetQueryResultsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetQueryResultsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetQueryResultsError, R>) -> Self
fn from(err: SdkError<GetQueryResultsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetTableMetadataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetTableMetadataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetTableMetadataError, R>) -> Self
fn from(err: SdkError<GetTableMetadataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetWorkGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetWorkGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetWorkGroupError, R>) -> Self
fn from(err: SdkError<GetWorkGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListDataCatalogsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListDataCatalogsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListDataCatalogsError, R>) -> Self
fn from(err: SdkError<ListDataCatalogsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListDatabasesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListDatabasesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListDatabasesError, R>) -> Self
fn from(err: SdkError<ListDatabasesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListEngineVersionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListEngineVersionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListEngineVersionsError, R>) -> Self
fn from(err: SdkError<ListEngineVersionsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListNamedQueriesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListNamedQueriesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListNamedQueriesError, R>) -> Self
fn from(err: SdkError<ListNamedQueriesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListPreparedStatementsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListPreparedStatementsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListPreparedStatementsError, R>) -> Self
fn from(err: SdkError<ListPreparedStatementsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListQueryExecutionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListQueryExecutionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListQueryExecutionsError, R>) -> Self
fn from(err: SdkError<ListQueryExecutionsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTableMetadataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTableMetadataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTableMetadataError, R>) -> Self
fn from(err: SdkError<ListTableMetadataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListWorkGroupsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListWorkGroupsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListWorkGroupsError, R>) -> Self
fn from(err: SdkError<ListWorkGroupsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<StartQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StartQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StartQueryExecutionError, R>) -> Self
fn from(err: SdkError<StartQueryExecutionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<StopQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StopQueryExecutionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StopQueryExecutionError, R>) -> Self
fn from(err: SdkError<StopQueryExecutionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdateDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateDataCatalogError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateDataCatalogError, R>) -> Self
fn from(err: SdkError<UpdateDataCatalogError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdateNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateNamedQueryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateNamedQueryError, R>) -> Self
fn from(err: SdkError<UpdateNamedQueryError, R>) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more