29 lines
562 B
Python
29 lines
562 B
Python
# This file holds custom error types that you can define for your application.
|
|
|
|
|
|
class ConfigError(RuntimeError):
|
|
"""An error encountered during reading the config file.
|
|
|
|
Args:
|
|
msg: The message displayed to the user on error.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class AlertNotFoundError(RuntimeError):
|
|
"""An error encountered when an alert cannot be found in database.
|
|
|
|
Args:
|
|
msg: The message displayed to the user on error.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class SilenceNotFoundError(RuntimeError):
|
|
pass
|
|
|
|
|
|
class AlertmanagerError(RuntimeError):
|
|
pass
|