feat(exceptions): add InvariantError

This exception is to be used when a known invariant is violated.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-08 16:02:21 -08:00
parent 85e6ad03db
commit bad57ba502
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 11 additions and 0 deletions

View file

@ -86,3 +86,7 @@ class ValidationError(AurwebException):
def __init__(self, data: Any, *args, **kwargs):
super().__init__(*args, **kwargs)
self.data = data
class InvariantError(AurwebException):
pass