cpp-common/bt2: use classes from `cpp-common/exc.hpp`
This patch:
* Renames `lib-error.hpp` to `exc.hpp` as this could contain non-error
exceptions in the future.
* Changes `bt2::Error`, `bt2::MemoryError`, and `bt2::OverflowError` to
be aliases of `bt2_common::Error`, `bt2_common::MemoryError`, and
`bt2_common::OverflowError`.
This makes it possible for some code to catch only the common
`bt2_common` errors to handle both library and user/internal
exceptions.
Note that those exceptions don't carry much information themselves;
they're usually just a signal that an exception occurred, while the
details are part of the libbabeltrace2 error of the current thread.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I5bc1d39c8d978c21604614c68012509edc1776d5
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8176
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10824
Tested-by: jenkins <jenkins@lttng.org>
This page took 0.027592 seconds and 4 git commands to generate.