* #83 - Fixing the bug that was preventing the status update

* #83 - Refactoring unit tests for configuration to ensure we catch more cases
This commit is contained in:
mtakaki
2020-02-10 23:51:02 -08:00
committed by GitHub
parent 0a55b1f513
commit 5679bdaa52
8 changed files with 299 additions and 254 deletions

View File

@@ -17,3 +17,13 @@ class MetricNonexistentError(Exception):
def __str__(self):
return repr(f'Metric with id [{self.metric_id}] does not exist.')
class ConfigurationValidationError(Exception):
"""Exception raised when there's a validation error."""
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)