projects
/
pywienerlinien
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c232ab1
)
added missing error classes
author
Florian Schweikert
<kelvan@logic.at>
Fri, 14 Oct 2011 21:47:14 +0000
(23:47 +0200)
committer
Florian Schweikert
<kelvan@logic.at>
Fri, 14 Oct 2011 21:47:14 +0000
(23:47 +0200)
gotovienna/errors.py
[new file with mode: 0644]
patch
|
blob
diff --git a/gotovienna/errors.py
b/gotovienna/errors.py
new file mode 100644
(file)
index 0000000..
73228a2
--- /dev/null
+++ b/
gotovienna/errors.py
@@ -0,0
+1,13
@@
+class LineNotFoundError(Exception):
+ def __init__(self, msg="Unknown line"):
+ self.message = msg
+
+ def __str__(self):
+ return self.message
+
+class StationNotFoundError(Exception):
+ def __init__(self, msg="Unknown station"):
+ self.message = msg
+
+ def __str__(self):
+ return self.message
\ No newline at end of file