mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

Manifest and module loading has been refactored Provider modules now must implement validate_manifest like plugins do Simplified loading of manifests
25 lines
631 B
Python
25 lines
631 B
Python
|
|
|
|
class ManifestError(Exception):
|
|
def __init__(self, message, manifest_path, json_path=None):
|
|
self.message = message
|
|
self.manifest_path = manifest_path
|
|
self.json_path = json_path
|
|
|
|
def __str__(self):
|
|
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)
|
|
|
|
|
|
class TaskListError(Exception):
|
|
def __init__(self, message):
|
|
self.message = message
|
|
|
|
def __str__(self):
|
|
return "Error in tasklist: {0}".format(self.message)
|
|
|
|
|
|
class TaskError(Exception):
|
|
pass
|