d398e9cbd7d356dce7e247efc612af5151db9d6a
[babeltrace.git] / src / cpp-common / bt2 / exc.hpp
1 /*
2 * Copyright (c) 2020-2022 Philippe Proulx <pproulx@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7 #ifndef BABELTRACE_CPP_COMMON_BT2_EXC_HPP
8 #define BABELTRACE_CPP_COMMON_BT2_EXC_HPP
9
10 #include "cpp-common/bt2c/exc.hpp"
11
12 namespace bt2 {
13
14 using Error = bt2c::Error;
15 using OverflowError = bt2c::OverflowError;
16 using MemoryError = bt2c::MemoryError;
17 using TryAgain = bt2c::TryAgain;
18
19 /*
20 * Unknown query object.
21 */
22 class UnknownObject : public std::exception
23 {
24 public:
25 explicit UnknownObject() noexcept : std::exception {}
26 {
27 }
28 };
29
30 } /* namespace bt2 */
31
32 #endif /* BABELTRACE_CPP_COMMON_BT2_EXC_HPP */
This page took 0.034297 seconds and 3 git commands to generate.