added missing error classes
authorFlorian Schweikert <kelvan@logic.at>
Fri, 14 Oct 2011 21:47:14 +0000 (23:47 +0200)
committerFlorian Schweikert <kelvan@logic.at>
Fri, 14 Oct 2011 21:47:14 +0000 (23:47 +0200)
gotovienna/errors.py [new file with mode: 0644]

diff --git a/gotovienna/errors.py b/gotovienna/errors.py
new file mode 100644 (file)
index 0000000..73228a2
--- /dev/null
@@ -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