aboutsummaryrefslogtreecommitdiff
path: root/scripts/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/exceptions.py')
-rw-r--r--scripts/exceptions.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/exceptions.py b/scripts/exceptions.py
index 29aa1dc..ec170ba 100644
--- a/scripts/exceptions.py
+++ b/scripts/exceptions.py
@@ -26,8 +26,16 @@ class ConfigurationError(Exception):
def __str__(self):
return "Configuration error: " + message
-class SolutionGenerated(Exception):
+class NoApplicableSolution(Exception):
def __init__(self):
pass
def __str__(self):
- return "Solution already generated."
+ return "No applicable solution find. All generated solutions were already applied."
+
+class ProcessFailed(Exception):
+ def __init__(self, process, returncode):
+ self.process = process
+ self.returncode = returncode
+ def __str__(self):
+ return "Process failed: " + str(self.process) + \
+ " with return code: " + str(self.returncode)