2021-01-11 09:41:31 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
from moto.core.exceptions import JsonRESTError
|
|
|
|
|
|
|
|
|
2021-03-01 13:20:36 +00:00
|
|
|
class IllegalStatusException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
|
|
|
super(IllegalStatusException, self).__init__("IllegalStatusException", message)
|
|
|
|
|
|
|
|
|
2021-01-28 10:47:53 +00:00
|
|
|
class InvalidEventPatternException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(InvalidEventPatternException, self).__init__(
|
|
|
|
"InvalidEventPatternException", "Event pattern is not valid."
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-01-11 09:41:31 +00:00
|
|
|
class ResourceNotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
|
|
|
super(ResourceNotFoundException, self).__init__(
|
|
|
|
"ResourceNotFoundException", message
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-01-28 10:47:53 +00:00
|
|
|
class ResourceAlreadyExistsException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
|
|
|
super(ResourceAlreadyExistsException, self).__init__(
|
|
|
|
"ResourceAlreadyExistsException", message
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-01-11 09:41:31 +00:00
|
|
|
class ValidationException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
|
|
|
super(ValidationException, self).__init__("ValidationException", message)
|