labelbase/django/background_task/exceptions.py
Xavier Fiechter c4a42b1b2b .
2024-02-10 00:59:17 +01:00

12 lines
333 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