2
0
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:
Michal 'vorner' Vaner
2011-06-17 22:54:28 +02:00
parent 03e690228b
commit 70af8c7c72
2 changed files with 42 additions and 31 deletions

View File

@@ -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