from bt2.component import _UserSourceComponent
from bt2.connection import *
from bt2.connection import _Connection
+from bt2.error import *
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
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
-class TryAgain(Exception):
+class Unsupported(Exception):
pass
-class Stop(StopIteration):
+class TryAgain(Exception):
pass
-class IncompleteUserClass(Error):
+class Stop(StopIteration):
pass
-class GraphCanceled(Exception):
+class IncompleteUserClass(Exception):
pass
-class QueryExecutorCanceled(Exception):
+class Canceled(Exception):
pass
-class NonexistentClockSnapshot(Error):
+class NonexistentClockSnapshot(Exception):
pass
-class PluginLoadingError(Error):
+class LoadingError(Error):
pass
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()