mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
12 lines
333 B
Python
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
|