Package com.amazonaws.services.waf.model
Class WAFInvalidParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.waf.model.WAFInvalidParameterException
- All Implemented Interfaces:
Serializable
The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
- You specified an invalid parameter name.
- You specified an invalid value.
- You tried to update an object (
ByteMatchSet,IPSet,Rule, orWebACL) using an action other thanINSERTorDELETE. - You tried to create a
WebACLwith aDefaultActionTypeother thanALLOW,BLOCK, orCOUNT. - You tried to update a
WebACLwith aWafActionTypeother thanALLOW,BLOCK, orCOUNT. - You tried to update a
ByteMatchSetwith aFieldToMatchTypeother than HEADER, QUERY_STRING, or URI. - You tried to update a
ByteMatchSetwith aFieldofHEADERbut no value forData.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType -
Constructor Summary
ConstructorsConstructorDescriptionWAFInvalidParameterException(String message) Constructs a new WAFInvalidParameterException with the specified error message. -
Method Summary
Modifier and TypeMethodDescriptiongetField()voidsetField(ParameterExceptionField field) voidvoidsetParameter(String parameter) voidsetReason(ParameterExceptionReason reason) voidwithField(ParameterExceptionField field) withParameter(String parameter) withReason(ParameterExceptionReason reason) withReason(String reason) Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeMethods inherited from class com.amazonaws.AmazonClientException
isRetryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WAFInvalidParameterException
Constructs a new WAFInvalidParameterException with the specified error message.- Parameters:
message- Describes the error encountered.
-
-
Method Details
-
setField
- Parameters:
field-- See Also:
-
getField
- Returns:
- See Also:
-
withField
- Parameters:
field-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setField
- Parameters:
field-- See Also:
-
withField
- Parameters:
field-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setParameter
- Parameters:
parameter-
-
getParameter
- Returns:
-
withParameter
- Parameters:
parameter-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReason
- Parameters:
reason-- See Also:
-
getReason
- Returns:
- See Also:
-
withReason
- Parameters:
reason-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setReason
- Parameters:
reason-- See Also:
-
withReason
- Parameters:
reason-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-