Build fix: missing cstdint include in futex.hpp
[lttng-tools.git] / src / common / exception.cpp
index 241686eaf6f4687038f522ed04ccc8d6d5707239..5645d7d91702efe3a0df4779d363fe616acbb78a 100644 (file)
@@ -26,7 +26,8 @@ lttng::ctl::error::error(lttng_error_code error_code,
                const char *file_name,
                const char *function_name,
                unsigned int line_number) :
-       runtime_error(std::string(error_get_str(error_code)), file_name, function_name, line_number)
+       runtime_error(std::string(error_get_str(error_code)), file_name, function_name, line_number),
+       _error_code{error_code}
 {
 }
 
@@ -49,6 +50,14 @@ lttng::runtime_error::runtime_error(const std::string& msg,
 {
 }
 
+lttng::unsupported_error::unsupported_error(const std::string& msg,
+               const char *file_name,
+               const char *function_name,
+               unsigned int line_number) :
+       std::runtime_error(msg + " " + format_throw_location(file_name, function_name, line_number))
+{
+}
+
 lttng::communication_error::communication_error(const std::string& msg,
                const char *file_name,
                const char *function_name,
This page took 0.022741 seconds and 4 git commands to generate.