* 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
23 lines
535 B
Python
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
|