2021-06-07 13:47:49 +01:00
|
|
|
from moto.core.exceptions import JsonRESTError
|
|
|
|
|
|
|
|
|
|
|
|
class MediaPackageClientError(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
|
|
|
|
# AWS service exceptions are caught with the underlying botocore exception, ClientError
|
|
|
|
class ClientError(MediaPackageClientError):
|
2023-04-03 23:50:19 +01:00
|
|
|
def __init__(self, error: str, message: str):
|
2022-01-14 18:51:49 -01:00
|
|
|
super().__init__(error, message)
|