2 * Copyright (C) 2024 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_CLI_EXCEPTION_H
9 #define LTTNG_CLI_EXCEPTION_H
11 #include <common/exception.hpp>
13 #include <lttng/lttng-error.h>
18 #define LTTNG_THROW_CLI_NO_DEFAULT_SESSION() \
19 throw lttng::cli::no_default_session_error(LTTNG_SOURCE_LOCATION())
23 class no_default_session_error : public runtime_error {
25 explicit no_default_session_error(const lttng::source_location& source_location);
28 }; /* namespace lttng */
30 #endif /* LTTNG_CLI_EXCEPTION_H */