X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fexception.hpp;h=1efd80359654bb34de8af78708a131cd8b194db2;hb=20c734f5b9940033f4ab96e47523c7d9e3d299bb;hp=30a40347050e8839c210e5bb461540f41186a92f;hpb=b6bbb1d666531bf061f29884da1b0d7c10f59aa0;p=lttng-tools.git diff --git a/src/common/exception.hpp b/src/common/exception.hpp index 30a403470..1efd80359 100644 --- a/src/common/exception.hpp +++ b/src/common/exception.hpp @@ -54,10 +54,14 @@ public: const char *file_name, const char *function_name, unsigned int line_number); - lttng_error_code get_code() const; + + lttng_error_code code() const noexcept + { + return _error_code; + } private: - lttng_error_code _error_code; + const lttng_error_code _error_code; }; } /* namespace ctl */