Enum aws_sdk_s3outposts::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
OutpostOfflineException(OutpostOfflineException),
ResourceNotFoundException(ResourceNotFoundException),
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
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.
AccessDeniedException(AccessDeniedException)
Access was denied for this action.
ConflictException(ConflictException)
There was a conflict with this action, and it could not be completed.
InternalServerException(InternalServerException)
There was an exception with the internal server.
OutpostOfflineException(OutpostOfflineException)
The service link connection to your Outposts home Region is down. Check your connection and try again.
ResourceNotFoundException(ResourceNotFoundException)
The requested resource was not found.
ThrottlingException(ThrottlingException)
The request was denied due to request throttling.
ValidationException(ValidationException)
There was an exception validating this data.
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<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<CreateEndpointError> for Error
impl From<CreateEndpointError> for Error
source§fn from(err: CreateEndpointError) -> Self
fn from(err: CreateEndpointError) -> Self
Converts to this type from the input type.
source§impl From<DeleteEndpointError> for Error
impl From<DeleteEndpointError> for Error
source§fn from(err: DeleteEndpointError) -> Self
fn from(err: DeleteEndpointError) -> Self
Converts to this type from the input type.
source§impl From<ListEndpointsError> for Error
impl From<ListEndpointsError> for Error
source§fn from(err: ListEndpointsError) -> Self
fn from(err: ListEndpointsError) -> Self
Converts to this type from the input type.
source§impl From<ListOutpostsWithS3Error> for Error
impl From<ListOutpostsWithS3Error> for Error
source§fn from(err: ListOutpostsWithS3Error) -> Self
fn from(err: ListOutpostsWithS3Error) -> Self
Converts to this type from the input type.
source§fn from(err: ListSharedEndpointsError) -> Self
fn from(err: ListSharedEndpointsError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateEndpointError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateEndpointError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateEndpointError, R>) -> Self
fn from(err: SdkError<CreateEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteEndpointError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteEndpointError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteEndpointError, R>) -> Self
fn from(err: SdkError<DeleteEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListEndpointsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListEndpointsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListEndpointsError, R>) -> Self
fn from(err: SdkError<ListEndpointsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListOutpostsWithS3Error, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListOutpostsWithS3Error, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListOutpostsWithS3Error, R>) -> Self
fn from(err: SdkError<ListOutpostsWithS3Error, R>) -> Self
Converts to this type from the input type.
source§fn from(err: SdkError<ListSharedEndpointsError, R>) -> Self
fn from(err: SdkError<ListSharedEndpointsError, R>) -> 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 !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>
Creates a shared type from an unshared type.