2013-06-23 12:00:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ManifestError(Exception):
|
2013-06-23 23:37:21 +02:00
|
|
|
def __init__(self, message, manifest, json_path=None):
|
2013-06-23 12:00:17 +02:00
|
|
|
self.message = message
|
|
|
|
self.manifest = manifest
|
2013-06-23 23:37:21 +02:00
|
|
|
self.json_path = json_path
|
2013-06-23 12:00:17 +02:00
|
|
|
def __str__(self):
|
2013-06-23 23:37:21 +02:00
|
|
|
if self.json_path is not None:
|
|
|
|
path = '.'.join(self.json_path)
|
|
|
|
return "{2}\n\tFile: {0}\n\tJSON path: {1}".format(self.manifest.path, path, self.message)
|
|
|
|
return "{0}: {1}".format(self.manifest.path, self.message)
|
2013-06-23 15:26:08 +02:00
|
|
|
|
2013-06-23 17:03:55 +02:00
|
|
|
class TaskListError(Exception):
|
|
|
|
def __init__(self, message):
|
2013-06-23 15:26:08 +02:00
|
|
|
self.message = message
|
|
|
|
def __str__(self):
|
2013-06-23 17:03:55 +02:00
|
|
|
return "Error in tasklist: {0}".format(self.message)
|
2013-06-24 23:12:39 +02:00
|
|
|
|
|
|
|
class TaskException(Exception):
|
|
|
|
pass
|