# What this PR does Related to https://github.com/grafana/oncall/issues/4410 The changes in this PR are a prerequisite to https://github.com/grafana/terraform-provider-grafana/pull/1653. See the conversation [here](https://raintank-corp.slack.com/archives/C04JCU51NF8/p1719806995902499?thread_ts=1719520920.744319&cid=C04JCU51NF8) for more context on why we decided to move away from always creating default personal notification rules for users. ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes.
27 lines
707 B
Python
27 lines
707 B
Python
class OperationCouldNotBePerformedError(Exception):
|
|
"""
|
|
Indicates that operation could not be performed due 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 BacksyncIntegrationRequestError(Exception):
|
|
"""Error making request to alert receive channel backsync connection."""
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
self.error_msg = kwargs.pop("error_msg", None)
|
|
super().__init__(*args, **kwargs)
|