moto/moto/codebuild/exceptions.py
2022-10-30 19:55:31 -01:00

25 lines
606 B
Python

from moto.core.exceptions import JsonRESTError
""" will need exceptions for each api endpoint hit """
class InvalidInputException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("InvalidInputException", message)
class ResourceNotFoundException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("ResourceNotFoundException", message)
class ResourceAlreadyExistsException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__("ResourceAlreadyExistsException", message)