aboutsummaryrefslogtreecommitdiff
path: root/scripts/exceptions.py
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-02-03 20:57:20 +0100
committerKarel Kočí <cynerd@email.cz>2015-02-03 20:57:20 +0100
commitef85245f159402fd948ff045b56ad9095d22b39e (patch)
treecf5d0f0ce017ed4c29c2c46da0cb6311c88c2733 /scripts/exceptions.py
parent9f07dd89b7cd2de6ce341afd1aed3e6bd0122a27 (diff)
downloadlinux-conf-perf-ef85245f159402fd948ff045b56ad9095d22b39e.tar.gz
linux-conf-perf-ef85245f159402fd948ff045b56ad9095d22b39e.tar.bz2
linux-conf-perf-ef85245f159402fd948ff045b56ad9095d22b39e.zip
Implementing main loop
These new scripts are part of main loop. kernel is not finished!! Divides kconfig_parser, sat_solution to better named modules. Phasing and iteration is implemented for loop watching.
Diffstat (limited to 'scripts/exceptions.py')
-rw-r--r--scripts/exceptions.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/exceptions.py b/scripts/exceptions.py
new file mode 100644
index 0000000..722c44a
--- /dev/null
+++ b/scripts/exceptions.py
@@ -0,0 +1,21 @@
+class MissingFile(Exception):
+ def __init__(self, f, advice):
+ self.f = f
+ self.advice = advice
+ def __str__(self):
+ if advice == None:
+ return "No required file: " + f
+ else:
+ return "No required file: " + f + "\n" + advice
+
+class NoSolution(Exception):
+ def __init__(self):
+ pass
+ def __str__(self):
+ return "SAT solver found no solution. Statement is not satisfiable."
+
+class PhaseMismatch(Exception):
+ def __init__(self):
+ pass
+ def __str__(self):
+ return "Phase in " + conf.phase_file + " is unknown."