moto/moto/appsync/exceptions.py

15 lines
357 B
Python
Raw Normal View History

import json
from moto.core.exceptions import JsonRESTError
class AppSyncExceptions(JsonRESTError):
pass
class GraphqlAPINotFound(AppSyncExceptions):
code = 404
2022-10-16 18:14:15 +00:00
def __init__(self, api_id: str):
2022-03-10 14:39:59 +00:00
super().__init__("NotFoundException", f"GraphQL API {api_id} not found.")
self.description = json.dumps({"message": self.message})