moto/moto/datasync/exceptions.py
2023-11-30 14:55:51 -01:00

14 lines
352 B
Python

from typing import Optional
from moto.core.exceptions import JsonRESTError
class DataSyncClientError(JsonRESTError):
code = 400
class InvalidRequestException(DataSyncClientError):
def __init__(self, msg: Optional[str] = None):
self.code = 400
super().__init__("InvalidRequestException", msg or "The request is not valid.")