sessiond: ust: conditionally enable the underscore prefix variant quirk
[lttng-tools.git] / src / common / exception.hpp
index b7e8261ed65217f5652fd88192c37e78c178dd76..30a40347050e8839c210e5bb461540f41186a92f 100644 (file)
@@ -20,6 +20,8 @@
        throw lttng::posix_error(msg, errno_code, __FILE__, __func__, __LINE__)
 #define LTTNG_THROW_ERROR(msg) \
        throw lttng::runtime_error(msg, __FILE__, __func__, __LINE__)
        throw lttng::posix_error(msg, errno_code, __FILE__, __func__, __LINE__)
 #define LTTNG_THROW_ERROR(msg) \
        throw lttng::runtime_error(msg, __FILE__, __func__, __LINE__)
+#define LTTNG_THROW_UNSUPPORTED_ERROR(msg) \
+       throw lttng::runtime_error(msg, __FILE__, __func__, __LINE__)
 #define LTTNG_THROW_COMMUNICATION_ERROR(msg) \
        throw lttng::communication_error(msg, __FILE__, __func__, __LINE__)
 #define LTTNG_THROW_PROTOCOL_ERROR(msg) \
 #define LTTNG_THROW_COMMUNICATION_ERROR(msg) \
        throw lttng::communication_error(msg, __FILE__, __func__, __LINE__)
 #define LTTNG_THROW_PROTOCOL_ERROR(msg) \
@@ -36,6 +38,14 @@ public:
                        unsigned int line_number);
 };
 
                        unsigned int line_number);
 };
 
+class unsupported_error : public std::runtime_error {
+public:
+       explicit unsupported_error(const std::string& msg,
+                       const char *file_name,
+                       const char *function_name,
+                       unsigned int line_number);
+};
+
 namespace ctl {
 /* Wrap lttng_error_code errors which may be reported through liblttng-ctl's interface. */
 class error : public runtime_error {
 namespace ctl {
 /* Wrap lttng_error_code errors which may be reported through liblttng-ctl's interface. */
 class error : public runtime_error {
This page took 0.023054 seconds and 4 git commands to generate.