#[non_exhaustive]pub enum CreateFirewallPolicyError {
InsufficientCapacityException(InsufficientCapacityException),
InternalServerError(InternalServerError),
InvalidRequestException(InvalidRequestException),
LimitExceededException(LimitExceededException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateFirewallPolicyError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InsufficientCapacityException(InsufficientCapacityException)
Amazon Web Services doesn't currently have enough available capacity to fulfill your request. Try your request later.
InternalServerError(InternalServerError)
Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
InvalidRequestException(InvalidRequestException)
The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
LimitExceededException(LimitExceededException)
Unable to perform the operation because doing so would violate a limit setting.
ThrottlingException(ThrottlingException)
Unable to process the request due to throttling limitations.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateFirewallPolicyError
impl CreateFirewallPolicyError
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 CreateFirewallPolicyError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateFirewallPolicyError::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_insufficient_capacity_exception(&self) -> bool
pub fn is_insufficient_capacity_exception(&self) -> bool
Returns true
if the error kind is CreateFirewallPolicyError::InsufficientCapacityException
.
sourcepub fn is_internal_server_error(&self) -> bool
pub fn is_internal_server_error(&self) -> bool
Returns true
if the error kind is CreateFirewallPolicyError::InternalServerError
.
sourcepub fn is_invalid_request_exception(&self) -> bool
pub fn is_invalid_request_exception(&self) -> bool
Returns true
if the error kind is CreateFirewallPolicyError::InvalidRequestException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is CreateFirewallPolicyError::LimitExceededException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is CreateFirewallPolicyError::ThrottlingException
.
Trait Implementations§
source§impl CreateUnhandledError for CreateFirewallPolicyError
impl CreateUnhandledError for CreateFirewallPolicyError
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 CreateFirewallPolicyError
impl Debug for CreateFirewallPolicyError
source§impl Display for CreateFirewallPolicyError
impl Display for CreateFirewallPolicyError
source§impl Error for CreateFirewallPolicyError
impl Error for CreateFirewallPolicyError
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<CreateFirewallPolicyError> for Error
impl From<CreateFirewallPolicyError> for Error
source§fn from(err: CreateFirewallPolicyError) -> Self
fn from(err: CreateFirewallPolicyError) -> Self
source§impl ProvideErrorMetadata for CreateFirewallPolicyError
impl ProvideErrorMetadata for CreateFirewallPolicyError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateFirewallPolicyError
impl RequestId for CreateFirewallPolicyError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.