moto/moto/emrserverless/exceptions.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
479 B
Python
Raw Normal View History

"""Exceptions raised by the emrserverless service."""
from moto.core.exceptions import JsonRESTError
class ResourceNotFoundException(JsonRESTError):
code = 400
2023-03-05 09:27:17 -01:00
def __init__(self, resource: str):
super().__init__(
"ResourceNotFoundException", f"Application {resource} does not exist"
)
class ValidationException(JsonRESTError):
code = 400
2023-03-05 09:27:17 -01:00
def __init__(self, message: str):
super().__init__("ValidationException", message)