moto/moto/emrserverless/exceptions.py
2023-03-05 09:27:17 -01:00

19 lines
479 B
Python

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