Clean-up: run format-cpp on the tree
[lttng-tools.git] / src / common / exception.hpp
index a3b0a83e210a5246b35e949112eef5a315c79f73..e43094bb6e3a0baae83466295b4f41abba1d3047 100644 (file)
@@ -8,12 +8,12 @@
 #ifndef LTTNG_EXCEPTION_H_
 #define LTTNG_EXCEPTION_H_
 
-#include <string>
+#include <lttng/lttng-error.h>
+
 #include <stdexcept>
+#include <string>
 #include <system_error>
 
-#include <lttng/lttng-error.h>
-
 #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 */
This page took 0.024867 seconds and 4 git commands to generate.