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}
{
}
{
}
+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,