bt2: rename CreationError to MemoryError, handle it in and out of Python bindings
[babeltrace.git] / src / bindings / python / bt2 / bt2 / field_class.py
index 06980b393bc2ade4b6fa06ec35d33246d422e43e..7f25136889e3d494573f52ff5d664d857492ac9f 100644 (file)
@@ -46,7 +46,7 @@ class _FieldClass(object._SharedObject):
 
     def _check_create_status(self, ptr):
         if ptr is None:
-            raise bt2.CreationError(
+            raise bt2.MemoryError(
                 'cannot create {} field class object'.format(self._NAME.lower())
             )
 
This page took 0.023711 seconds and 4 git commands to generate.