Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
71da202e
Commit
71da202e
authored
Dec 01, 2013
by
Andreas Freise
Browse files
addign a new exception, just playing around.
parent
4967a580
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/exceptions.py
View file @
71da202e
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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment