bt2: make `bt2._OverflowError` inherit `bt2._Error`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Jul 2019 21:07:31 +0000 (17:07 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 25 Jul 2019 18:04:47 +0000 (14:04 -0400)
`bt2._OverflowError` represents the `__BT_FUNC_STATUS_OVERFLOW_ERROR`
status code, which is an error. The library appends an error cause when
returning this status, so `bt2._OverflowError` inherits `bt2._Error`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iaf59bd604f595e8b57d46d7edec57b462e45416e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1776
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/__init__.py.in

index 3eb519486e8e02e6e9c04e9d74b5c60f4585089e..217366c9ec190f26decc1b71e0fc9d4ea46a043e 100644 (file)
@@ -165,7 +165,7 @@ class InvalidObject(Exception):
     pass
 
 
-class _OverflowError(OverflowError):
+class _OverflowError(_Error, OverflowError):
     pass
 
 
This page took 0.030894 seconds and 4 git commands to generate.