X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fexception.cpp;fp=src%2Fcommon%2Fexception.cpp;h=5645d7d91702efe3a0df4779d363fe616acbb78a;hp=f1c530f7e4249928541a7603f311dcaac2cbee82;hb=b6bbb1d666531bf061f29884da1b0d7c10f59aa0;hpb=88277a52069ed0135254ce29da617ebb6ecddbb8 diff --git a/src/common/exception.cpp b/src/common/exception.cpp index f1c530f7e..5645d7d91 100644 --- a/src/common/exception.cpp +++ b/src/common/exception.cpp @@ -50,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,