moto/moto/workspaces/exceptions.py
2024-03-21 20:21:52 -01:00

32 lines
777 B
Python

"""Exceptions raised by the workspaces service."""
from moto.core.exceptions import JsonRESTError
class ValidationException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("ValidationException", message)
class InvalidParameterValuesException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("InvalidParameterValuesException", message)
class ResourceAlreadyExistsException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("ResourceAlreadyExistsException", message)
class ResourceNotFoundException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("ResourceNotFoundException", message)