2019-04-26 20:52:24 +01:00
|
|
|
from moto.core.exceptions import JsonRESTError
|
|
|
|
|
|
|
|
|
|
|
|
class NotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__("NotFoundException", message)
|
2019-04-26 20:52:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ValidationException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__("ValidationException", message)
|
2019-04-26 20:52:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
class AlreadyExistsException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__("AlreadyExistsException", message)
|
2019-04-26 20:52:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
class NotAuthorizedException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__("NotAuthorizedException", None)
|
2019-04-26 20:52:24 +01:00
|
|
|
|
|
|
|
self.description = '{"__type":"NotAuthorizedException"}'
|
2019-08-26 23:24:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
class AccessDeniedException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__("AccessDeniedException", message)
|
2019-08-26 23:24:31 -07:00
|
|
|
|
|
|
|
self.description = '{"__type":"AccessDeniedException"}'
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidCiphertextException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__("InvalidCiphertextException", None)
|
2019-08-26 23:24:31 -07:00
|
|
|
|
|
|
|
self.description = '{"__type":"InvalidCiphertextException"}'
|