moto/moto/wafv2/exceptions.py
2023-06-15 11:03:58 +00:00

22 lines
649 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from moto.core.exceptions import JsonRESTError
class WAFv2ClientError(JsonRESTError):
code = 400
class WAFV2DuplicateItemException(WAFv2ClientError):
def __init__(self) -> None:
super().__init__(
"WafV2DuplicateItem",
"AWS WAF could not perform the operation because some resource in your request is a duplicate of an existing one.",
)
class WAFNonexistentItemException(WAFv2ClientError):
def __init__(self) -> None:
super().__init__(
"WAFNonexistentItemException",
"AWS WAF couldnt perform the operation because your resource doesnt exist.",
)