moto/moto/ram/exceptions.py
2022-01-14 18:51:49 -01:00

35 lines
933 B
Python

from moto.core.exceptions import JsonRESTError
class InvalidParameterException(JsonRESTError):
code = 400
def __init__(self, message):
super().__init__("InvalidParameterException", message)
class MalformedArnException(JsonRESTError):
code = 400
def __init__(self, message):
super().__init__("MalformedArnException", message)
class OperationNotPermittedException(JsonRESTError):
code = 400
def __init__(self):
super().__init__(
"OperationNotPermittedException",
"Unable to enable sharing with AWS Organizations. "
"Received AccessDeniedException from AWSOrganizations with the following error message: "
"You don't have permissions to access this resource.",
)
class UnknownResourceException(JsonRESTError):
code = 400
def __init__(self, message):
super().__init__("UnknownResourceException", message)