cpp-common: Add common exceptions
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 19 Apr 2022 20:49:47 +0000 (16:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Aug 2022 12:31:29 +0000 (08:31 -0400)
commit80209ef8636f80aacd18e8435b7e750987b34b8b
treedd2d8164fd183b1b19d316a95993bfcc4d908532
parentceab39956e9a7712fc1dcdf6a9e43b9579242a63
cpp-common: Add common exceptions

Add `bt2_common::{End, Error, MemoryError, TryAgain}` exception classes
to use in in-tree components and elsewhere. Each exception inherits a
C++ standard exception that I believe matches more closely in meaning.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I7335465f2377e032ae9706108708e35d78d38e6e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7918
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/Makefile.am
src/cpp-common/exc.hpp [new file with mode: 0644]
This page took 0.025089 seconds and 5 git commands to generate.