diff options
Diffstat (limited to 'server/szurubooru/services/errors.py')
| -rw-r--r-- | server/szurubooru/services/errors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/szurubooru/services/errors.py b/server/szurubooru/services/errors.py new file mode 100644 index 0000000..09fbe51 --- /dev/null +++ b/server/szurubooru/services/errors.py @@ -0,0 +1,9 @@ +''' Exports custom errors. ''' + +class AuthError(RuntimeError): + ''' Generic authentication error ''' + pass + +class IntegrityError(RuntimeError): + ''' Database integrity error ''' + pass |