2022-01-14 21:12:26 +00:00
|
|
|
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.")
|
2022-01-14 21:12:26 +00:00
|
|
|
self.description = json.dumps({"message": self.message})
|