mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-10-05 13:26:03 +00:00
[trac978] Cleanup of comments and exceptions
This commit is contained in:
@@ -163,6 +163,17 @@ public:
|
||||
oss__ << stream; \
|
||||
throw type(__FILE__, __LINE__, oss__.str().c_str()); \
|
||||
} while (1)
|
||||
|
||||
///
|
||||
/// Similar as isc_throw, but allows the exception to have one additional
|
||||
/// parameter (the stream/text goes first)
|
||||
#define isc_throw_1(type, stream, param1) \
|
||||
do { \
|
||||
std::ostringstream oss__; \
|
||||
oss__ << stream; \
|
||||
throw type(__FILE__, __LINE__, oss__.str().c_str(), param1); \
|
||||
} while (1)
|
||||
|
||||
}
|
||||
#endif // __EXCEPTIONS_H
|
||||
|
||||
|
Reference in New Issue
Block a user