19 lines
479 B
Python
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)
|