lib: add bt_{graph,query_executor}_add_interrupter()
[babeltrace.git] / src / bindings / python / bt2 / bt2 / __init__.py.in
index 1bebfd4e0ab2cc0171cb6739e55cfdc4d4918bf5..01c87e51c238f932ccaf16803dccf6e019a2d64b 100644 (file)
@@ -23,6 +23,7 @@
 __version__ = '@PACKAGE_VERSION@'
 
 
+from bt2.interrupter import *
 from bt2.clock_class import *
 from bt2.clock_snapshot import *
 from bt2.component import *
@@ -37,16 +38,20 @@ from bt2.component import _UserSinkComponent
 from bt2.component import _UserSourceComponent
 from bt2.connection import *
 from bt2.connection import _Connection
+from bt2.error import *
+from bt2.error import _Error
 from bt2.event import _Event
 from bt2.event_class import *
 from bt2.field_class import *
 from bt2.field_path import *
 from bt2.field import *
 from bt2.graph import *
+from bt2.integer_range_set import *
 from bt2.logging import *
 from bt2.message import *
 from bt2.message import _DiscardedEventsMessage
 from bt2.message import _DiscardedPacketsMessage
+from bt2.message import _EventMessage
 from bt2.message_iterator import *
 from bt2.message_iterator import _UserMessageIterator
 from bt2.packet import _Packet
@@ -63,22 +68,21 @@ from bt2.value import *
 from bt2.value import _Value
 from bt2.value import _IntegerValue
 from bt2.clock_snapshot import _UnknownClockSnapshot
-from bt2.clock_snapshot import _InfiniteClockSnapshot
 
 
-class Error(Exception):
-    pass
+class _MemoryError(_Error):
+    '''Raised when an operation fails due to memory issues.'''
 
 
-class CreationError(Error):
-    '''Raised when object creation fails due to memory issues.'''
+class InvalidObject(Exception):
+    pass
 
 
-class InvalidQueryObject(Error):
+class InvalidParams(Exception):
     pass
 
 
-class InvalidQueryParams(Error):
+class OverflowError(OverflowError):
     pass
 
 
@@ -90,23 +94,7 @@ class Stop(StopIteration):
     pass
 
 
-class PortConnectionRefused(Exception):
-    pass
-
-
-class IncompleteUserClass(Error):
-    pass
-
-
-class GraphCanceled(Exception):
-    pass
-
-
-class QueryExecutorCanceled(Exception):
-    pass
-
-
-class NonexistentClockSnapshot(Error):
+class IncompleteUserClass(Exception):
     pass
 
 
@@ -120,10 +108,14 @@ def _init_and_register_exit():
     import bt2.native_bt as _native_bt
     import atexit
 
-    atexit.register(_native_bt.py3_cc_exit_handler)
-    version = (_native_bt.version_get_major(), _native_bt.version_get_minor(),
-               _native_bt.version_get_patch(), _native_bt.version_get_extra())
-    _native_bt.py3_cc_init_from_bt2()
+    atexit.register(_native_bt.bt2_cc_exit_handler)
+    version = (
+        _native_bt.version_get_major(),
+        _native_bt.version_get_minor(),
+        _native_bt.version_get_patch(),
+        _native_bt.version_get_extra(),
+    )
+    _native_bt.bt2_cc_init_from_bt2()
 
 
 _init_and_register_exit()
This page took 0.025326 seconds and 4 git commands to generate.