moto/moto/kinesisvideo/exceptions.py
2022-03-10 13:39:59 -01:00

21 lines
525 B
Python

from moto.core.exceptions import RESTError
class KinesisvideoClientError(RESTError):
code = 400
class ResourceNotFoundException(KinesisvideoClientError):
def __init__(self):
self.code = 404
super().__init__(
"ResourceNotFoundException",
"The requested stream is not found or not active.",
)
class ResourceInUseException(KinesisvideoClientError):
def __init__(self, message):
self.code = 400
super().__init__("ResourceInUseException", message)