ctf: add try/catch at entry points
Add try / catch at the entry points of the CTF component classes to
convert thrown exceptions in the proper statuses. The handled
exceptions are:
- std::bad_alloc: converted to MEMORY_ERROR
- bt2::Error: converted to ERROR
Any other exception (for example, coming from a third-party library we
would eventually use) should be caught and converted to a
bt2_common::Error.
Change-Id: I06c2ccb43947f5a9e61568967f2812ccb0821b36
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12263
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
This page took 0.025862 seconds and 4 git commands to generate.