Commit 71da202e authored by Andreas Freise's avatar Andreas Freise
Browse files

addign a new exception, just playing around.

parent 4967a580
import exceptions
class BasePyKatException(Exception):
def __init__(self, msg):
self.__msg = msg
......@@ -7,6 +8,10 @@ class BasePyKatException(Exception):
def __str__(self):
return self.__msg
class FinesseParse(BasePyKatException) :
def __init__(self, msg):
BasePyKatException.__init__(self, "Error parsing Finesse input\n{0}".format(msg))
class MissingFinesseEnvVar(BasePyKatException) :
def __init__(self):
BasePyKatException.__init__(self, "The environment variable FINESSE_DIR was not defined")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment