WAF / Client / exceptions / WAFInvalidOperationException
WAFInvalidOperationException¶
- class WAF.Client.exceptions.WAFInvalidOperationException¶
The operation failed because there was nothing to do. For example:
You tried to remove a
Rulefrom aWebACL, but theRuleisn’t in the specifiedWebACL.You tried to remove an IP address from an
IPSet, but the IP address isn’t in the specifiedIPSet.You tried to remove a
ByteMatchTuplefrom aByteMatchSet, but theByteMatchTupleisn’t in the specifiedWebACL.You tried to add a
Ruleto aWebACL, but theRulealready exists in the specifiedWebACL.You tried to add a
ByteMatchTupleto aByteMatchSet, but theByteMatchTuplealready exists in the specifiedWebACL.
Example
try: ... except client.exceptions.WAFInvalidOperationException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The operation failed because there was nothing to do. For example:
You tried to remove a
Rulefrom aWebACL, but theRuleisn’t in the specifiedWebACL.You tried to remove an IP address from an
IPSet, but the IP address isn’t in the specifiedIPSet.You tried to remove a
ByteMatchTuplefrom aByteMatchSet, but theByteMatchTupleisn’t in the specifiedWebACL.You tried to add a
Ruleto aWebACL, but theRulealready exists in the specifiedWebACL.You tried to add a
ByteMatchTupleto aByteMatchSet, but theByteMatchTuplealready exists in the specifiedWebACL.
message (string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.