X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fexception.hpp;fp=src%2Fcommon%2Fexception.hpp;h=e43094bb6e3a0baae83466295b4f41abba1d3047;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=a3b0a83e210a5246b35e949112eef5a315c79f73;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b;p=lttng-tools.git diff --git a/src/common/exception.hpp b/src/common/exception.hpp index a3b0a83e2..e43094bb6 100644 --- a/src/common/exception.hpp +++ b/src/common/exception.hpp @@ -8,12 +8,12 @@ #ifndef LTTNG_EXCEPTION_H_ #define LTTNG_EXCEPTION_H_ -#include +#include + #include +#include #include -#include - #define LTTNG_THROW_CTL(msg, error_code) \ throw lttng::ctl::error(msg, error_code, __FILE__, __func__, __LINE__) #define LTTNG_THROW_POSIX(msg, errno_code) \ @@ -32,17 +32,17 @@ namespace lttng { class runtime_error : public std::runtime_error { public: explicit runtime_error(const std::string& msg, - const char *file_name, - const char *function_name, - unsigned int line_number); + const char *file_name, + const char *function_name, + 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); + const char *file_name, + const char *function_name, + unsigned int line_number); }; namespace ctl { @@ -68,34 +68,34 @@ private: class posix_error : public std::system_error { public: explicit posix_error(const std::string& msg, - int errno_code, - const char *file_name, - const char *function_name, - unsigned int line_number); + int errno_code, + const char *file_name, + const char *function_name, + unsigned int line_number); }; class communication_error : public runtime_error { public: explicit communication_error(const std::string& msg, - const char *file_name, - const char *function_name, - unsigned int line_number); + const char *file_name, + const char *function_name, + unsigned int line_number); }; class protocol_error : public communication_error { public: explicit protocol_error(const std::string& msg, - const char *file_name, - const char *function_name, - unsigned int line_number); + const char *file_name, + const char *function_name, + unsigned int line_number); }; class invalid_argument_error : public runtime_error { public: explicit invalid_argument_error(const std::string& msg, - const char *file_name, - const char *function_name, - unsigned int line_number); + const char *file_name, + const char *function_name, + unsigned int line_number); }; }; /* namespace lttng */