python: move exception types out of __init__.py
[babeltrace.git] / src / bindings / python / bt2 / bt2 / utils.py
index 393f7ed883ec94f651355b7250d02601b190ff1f..849c7a3c2af099b78a5ab516038528ef54c39d01 100644 (file)
@@ -5,6 +5,28 @@
 import bt2
 from bt2 import logging as bt2_logging
 from bt2 import native_bt
+from bt2 import error as bt2_error
+
+
+class UnknownObject(Exception):
+    """
+    Raised when a component class handles a query for an object it doesn't
+    know about.
+    """
+
+    pass
+
+
+class _OverflowError(bt2_error._Error, OverflowError):
+    pass
+
+
+class TryAgain(Exception):
+    pass
+
+
+class Stop(StopIteration):
+    pass
 
 
 def _check_bool(o):
This page took 0.024321 seconds and 4 git commands to generate.