mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-17 14:17:13 +03:00
UTIL_THROW_IF2 with base Exception class
This commit is contained in:
parent
c9d09a7168
commit
682563df76
@ -98,6 +98,9 @@ template <class Except, class Data> typename Except::template ExceptionTag<Excep
|
||||
#define UTIL_THROW_IF(Condition, Exception, Modify) \
|
||||
UTIL_THROW_IF_ARG(Condition, Exception, , Modify)
|
||||
|
||||
#define UTIL_THROW_IF2(Condition, Modify) \
|
||||
UTIL_THROW_IF_ARG(Condition, util::Exception, , Modify)
|
||||
|
||||
// Exception that records errno and adds it to the message.
|
||||
class ErrnoException : public Exception {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user