2022-06-03 08:09:47 -06:00
|
|
|
class OperationCouldNotBePerformedError(Exception):
|
|
|
|
|
"""
|
2023-04-18 10:48:11 +08:00
|
|
|
Indicates that operation could not be performed due to application logic.
|
2022-06-03 08:09:47 -06:00
|
|
|
E.g. you can't ack resolved AlertGroup
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MaintenanceCouldNotBeStartedError(OperationCouldNotBePerformedError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TeamCanNotBeChangedError(OperationCouldNotBePerformedError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UnableToSendDemoAlert(OperationCouldNotBePerformedError):
|
|
|
|
|
pass
|
2022-08-26 13:46:50 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class UserNotificationPolicyCouldNotBeDeleted(OperationCouldNotBePerformedError):
|
|
|
|
|
pass
|
2024-03-15 15:01:38 -03:00
|
|
|
|
|
|
|
|
|
2024-03-18 09:11:40 -03:00
|
|
|
class BacksyncIntegrationRequestError(Exception):
|
|
|
|
|
"""Error making request to alert receive channel backsync connection."""
|
2024-03-15 15:01:38 -03:00
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
|
self.error_msg = kwargs.pop("error_msg", None)
|
|
|
|
|
super().__init__(*args, **kwargs)
|