public class WAFInvalidParameterException extends AmazonServiceException
The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
ByteMatchSet
,
IPSet
, Rule
, or WebACL
) using an
action other than INSERT
or DELETE
.WebACL
with a
DefaultAction
Type
other than ALLOW
,
BLOCK
, or COUNT
.WebACL
with a WafAction
Type
other than ALLOW
, BLOCK
, or
COUNT
.ByteMatchSet
with a
FieldToMatch
Type
other than HEADER, QUERY_STRING,
or URI.ByteMatchSet
with a Field
of HEADER
but no value for Data
.AmazonServiceException.ErrorType
Constructor and Description |
---|
WAFInvalidParameterException(String message)
Constructs a new WAFInvalidParameterException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
String |
getField() |
String |
getParameter() |
void |
setField(ParameterExceptionField field) |
void |
setField(String field) |
void |
setParameter(String parameter) |
WAFInvalidParameterException |
withField(ParameterExceptionField field) |
WAFInvalidParameterException |
withField(String field) |
WAFInvalidParameterException |
withParameter(String parameter) |
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WAFInvalidParameterException(String message)
message
- Describes the error encountered.public void setField(String field)
field
- ParameterExceptionField
public String getField()
ParameterExceptionField
public WAFInvalidParameterException withField(String field)
field
- ParameterExceptionField
public void setField(ParameterExceptionField field)
field
- ParameterExceptionField
public WAFInvalidParameterException withField(ParameterExceptionField field)
field
- ParameterExceptionField
public void setParameter(String parameter)
parameter
- public String getParameter()
public WAFInvalidParameterException withParameter(String parameter)
parameter
- Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.