projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: rename CreationError to MemoryError, handle it in and out of Python bindings
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
trace_class.py
diff --git
a/src/bindings/python/bt2/bt2/trace_class.py
b/src/bindings/python/bt2/bt2/trace_class.py
index 8032ed117b88532f3728c252aef55384804de33a..798dbee07558fc81ef399c60e679330612b5ddbd 100644
(file)
--- a/
src/bindings/python/bt2/bt2/trace_class.py
+++ b/
src/bindings/python/bt2/bt2/trace_class.py
@@
-69,7
+69,7
@@
class _TraceClass(object._SharedObject, collections.abc.Mapping):
trace_ptr = native_bt.trace_create(self._ptr)
if trace_ptr is None:
trace_ptr = native_bt.trace_create(self._ptr)
if trace_ptr is None:
- raise bt2.
Creation
Error('cannot create trace class object')
+ raise bt2.
Memory
Error('cannot create trace class object')
trace = bt2.trace._Trace._create_from_ptr(trace_ptr)
trace = bt2.trace._Trace._create_from_ptr(trace_ptr)
@@
-204,7
+204,7
@@
class _TraceClass(object._SharedObject, collections.abc.Mapping):
def _check_create_status(self, ptr, type_name):
if ptr is None:
def _check_create_status(self, ptr, type_name):
if ptr is None:
- raise bt2.
Creation
Error('cannot create {} field class'.format(type_name))
+ raise bt2.
Memory
Error('cannot create {} field class'.format(type_name))
def _create_integer_field_class(
self, create_func, py_cls, type_name, field_value_range, preferred_display_base
def _create_integer_field_class(
self, create_func, py_cls, type_name, field_value_range, preferred_display_base
This page took
0.024167 seconds
and
4
git commands to generate.