bootstrap-vz/common/exceptions.py

17 lines
417 B
Python
Raw Normal View History

__all__ = ['ManifestError']
class ManifestError(Exception):
def __init__(self, message, manifest):
self.message = message
self.manifest = manifest
def __str__(self):
return "Error in manifest {0}: {1}".format(self.manifest.path, self.message)
class TaskListError(Exception):
def __init__(self, message):
self.message = message
def __str__(self):
return "Error in tasklist: {0}".format(self.message)