@@ -96,16 +96,16 @@ class Exception : public std::exception
9696 }
9797
9898// define a custom exception class that allows extra info
99- #define OPENVPN_EXCEPTION (C ) \
100- class C : public openvpn ::Exception \
101- { \
102- public: \
103- C () : openvpn::Exception(#C OPENVPN_FILE_LINE) \
104- { \
105- } \
106- C (const std::string err) : openvpn::Exception(#C OPENVPN_FILE_LINE " : " + err) \
107- { \
108- } \
99+ #define OPENVPN_EXCEPTION (C ) \
100+ class C : public openvpn ::Exception \
101+ { \
102+ public: \
103+ C () : openvpn::Exception(#C OPENVPN_FILE_LINE) \
104+ { \
105+ } \
106+ C (const std::string & err) : openvpn::Exception(#C OPENVPN_FILE_LINE " : " + err) \
107+ { \
108+ } \
109109 }
110110
111111// define a custom exception class that allows extra info with error code
@@ -130,26 +130,26 @@ class Exception : public std::exception
130130 static std::string code2string (C##_##code code); \
131131 }
132132// define a custom exception class that allows extra info, but does not emit a tag
133- #define OPENVPN_UNTAGGED_EXCEPTION (C ) \
134- class C : public openvpn ::Exception \
135- { \
136- public: \
137- C (const std::string err) : openvpn::Exception(err) \
138- { \
139- } \
133+ #define OPENVPN_UNTAGGED_EXCEPTION (C ) \
134+ class C : public openvpn ::Exception \
135+ { \
136+ public: \
137+ C (const std::string & err) : openvpn::Exception(err) \
138+ { \
139+ } \
140140 }
141141
142142// define a custom exception class that allows extra info, and inherits from a custom base
143- #define OPENVPN_EXCEPTION_INHERIT (B, C ) \
144- class C : public B \
145- { \
146- public: \
147- C () : B(#C OPENVPN_FILE_LINE) \
148- { \
149- } \
150- C (const std::string err) : B(#C OPENVPN_FILE_LINE " : " + err) \
151- { \
152- } \
143+ #define OPENVPN_EXCEPTION_INHERIT (B, C ) \
144+ class C : public B \
145+ { \
146+ public: \
147+ C () : B(#C OPENVPN_FILE_LINE) \
148+ { \
149+ } \
150+ C (const std::string & err) : B(#C OPENVPN_FILE_LINE " : " + err) \
151+ { \
152+ } \
153153 }
154154
155155// define a custom exception class that allows extra info, and inherits from a custom base,
0 commit comments