oncall-engine/engine/common/exceptions/exceptions.py
Innokentii Konstantinov 356aa336ad
Remove auto-recreating logic for UserNotificationPolicy (#414)
* Remove auto-recreating logic for UserNotificationPolicy

It's removed to get rid of select_for_update on User on each notify_user_task

* Fix and add tests

* remove get_user_policies method
2022-08-26 13:46:50 +05:00

23 lines
535 B
Python

class OperationCouldNotBePerformedError(Exception):
"""
Indicates that operation could not be performed due to to application logic.
E.g. you can't ack resolved AlertGroup
"""
pass
class MaintenanceCouldNotBeStartedError(OperationCouldNotBePerformedError):
pass
class TeamCanNotBeChangedError(OperationCouldNotBePerformedError):
pass
class UnableToSendDemoAlert(OperationCouldNotBePerformedError):
pass
class UserNotificationPolicyCouldNotBeDeleted(OperationCouldNotBePerformedError):
pass