Enum aws_sdk_redshift::operation::associate_data_share_consumer::AssociateDataShareConsumerError
source · #[non_exhaustive]pub enum AssociateDataShareConsumerError {
InvalidDataShareFault(InvalidDataShareFault),
InvalidNamespaceFault(InvalidNamespaceFault),
Unhandled(Unhandled),
}
Expand description
Error type for the AssociateDataShareConsumerError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
There is an error with the datashare.
InvalidNamespaceFault(InvalidNamespaceFault)
The namespace isn't valid because the namespace doesn't exist. Provide a valid namespace.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
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 AssociateDataShareConsumerError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the AssociateDataShareConsumerError::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.
Returns true
if the error kind is AssociateDataShareConsumerError::InvalidDataShareFault
.
sourcepub fn is_invalid_namespace_fault(&self) -> bool
pub fn is_invalid_namespace_fault(&self) -> bool
Returns true
if the error kind is AssociateDataShareConsumerError::InvalidNamespaceFault
.
Trait Implementations§
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§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§fn from(err: AssociateDataShareConsumerError) -> Self
fn from(err: AssociateDataShareConsumerError) -> Self
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.