fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / src / bin / lttng / exception.hpp
1 /*
2 * Copyright (C) 2024 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_CLI_EXCEPTION_H
9 #define LTTNG_CLI_EXCEPTION_H
10
11 #include <common/exception.hpp>
12
13 #include <lttng/lttng-error.h>
14
15 #include <stdexcept>
16 #include <string>
17
18 #define LTTNG_THROW_CLI_NO_DEFAULT_SESSION() \
19 throw lttng::cli::no_default_session_error(__FILE__, __func__, __LINE__)
20
21 namespace lttng {
22 namespace cli {
23 class no_default_session_error : public runtime_error {
24 public:
25 explicit no_default_session_error(const char *file_name,
26 const char *function_name,
27 unsigned int line_number);
28 };
29 } /* namespace cli */
30 }; /* namespace lttng */
31
32 #endif /* LTTNG_CLI_EXCEPTION_H */
This page took 0.029444 seconds and 4 git commands to generate.