cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition
[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 = default;
26 };
27
28 } /* namespace bt2 */
29
30 #endif /* BABELTRACE_CPP_COMMON_BT2_EXC_HPP */
This page took 0.029369 seconds and 4 git commands to generate.