1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
"""Exceptions raised by the connectcampaigns service."""
from moto.core.exceptions import JsonRESTError
class ResourceNotFoundException(JsonRESTError):
"""When a resource is not found."""
code = 404
def __init__(self, message: str) -> None:
super().__init__("ResourceNotFoundException", message)
class ValidationException(JsonRESTError):
"""When validation fails on input parameters."""
code = 400
def __init__(self, message: str) -> None:
super().__init__("ValidationException", message)
|