lib: strictly type function return status enumerations
[babeltrace.git] / src / bindings / python / bt2 / bt2 / __init__.py.in
index 1bebfd4e0ab2cc0171cb6739e55cfdc4d4918bf5..0faede10cc664ed514f54099296e08d081e1b55c 100644 (file)
@@ -74,35 +74,35 @@ class CreationError(Error):
     '''Raised when object creation fails due to memory issues.'''
 
 
-class InvalidQueryObject(Error):
+class InvalidObject(Error):
     pass
 
 
-class InvalidQueryParams(Error):
+class InvalidParams(Error):
     pass
 
 
-class TryAgain(Exception):
+class OverflowError(OverflowError):
     pass
 
 
-class Stop(StopIteration):
+class Unsupported(Exception):
     pass
 
 
-class PortConnectionRefused(Exception):
+class TryAgain(Exception):
     pass
 
 
-class IncompleteUserClass(Error):
+class Stop(StopIteration):
     pass
 
 
-class GraphCanceled(Exception):
+class IncompleteUserClass(Error):
     pass
 
 
-class QueryExecutorCanceled(Exception):
+class Canceled(Exception):
     pass
 
 
@@ -110,6 +110,10 @@ class NonexistentClockSnapshot(Error):
     pass
 
 
+class LoadingError(Error):
+    pass
+
+
 class _ListenerHandle:
     def __init__(self, listener_id, obj):
         self._listener_id = listener_id
@@ -120,10 +124,10 @@ def _init_and_register_exit():
     import bt2.native_bt as _native_bt
     import atexit
 
-    atexit.register(_native_bt.py3_cc_exit_handler)
+    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.py3_cc_init_from_bt2()
+    _native_bt.bt2_cc_init_from_bt2()
 
 
 _init_and_register_exit()
This page took 0.025548 seconds and 4 git commands to generate.