labelbase/background_task/exceptions.py
Xavier Fiechter 302c3cb9bd WIP
2023-11-02 00:10:07 +01:00

15 lines
324 B
Python

# -*- coding: utf-8 -*-
class BackgroundTaskError(Exception):
def __init__(self, message, errors=None):
super(BackgroundTaskError, self).__init__(message)
self.errors = errors
class InvalidTaskError(BackgroundTaskError):
"""
The task will not be rescheduled if it fails with this error
"""
pass