2022-03-07 20:37:50 -01:00
|
|
|
"""Exceptions raised by the pinpoint service."""
|
|
|
|
from moto.core.exceptions import JsonRESTError
|
|
|
|
|
|
|
|
|
|
|
|
class PinpointExceptions(JsonRESTError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ApplicationNotFound(PinpointExceptions):
|
|
|
|
code = 404
|
|
|
|
|
2023-04-08 20:44:26 +00:00
|
|
|
def __init__(self) -> None:
|
2022-03-07 20:37:50 -01:00
|
|
|
super().__init__("NotFoundException", "Application not found")
|
|
|
|
|
|
|
|
|
|
|
|
class EventStreamNotFound(PinpointExceptions):
|
|
|
|
code = 404
|
|
|
|
|
2023-04-08 20:44:26 +00:00
|
|
|
def __init__(self) -> None:
|
2022-03-07 20:37:50 -01:00
|
|
|
super().__init__("NotFoundException", "Resource not found")
|