summaryrefslogtreecommitdiff
path: root/lib/common/Logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r--lib/common/Logging.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h
index 6ffeec5d..86d37c22 100644
--- a/lib/common/Logging.h
+++ b/lib/common/Logging.h
@@ -59,6 +59,10 @@
#define THROW_SYS_FILE_ERROR(message, filename, exception, subtype) \
THROW_SYS_ERROR(message << ": " << filename, exception, subtype)
+#define THROW_FILE_ERROR(message, filename, exception, subtype) \
+ BOX_ERROR(message << ": " << filename); \
+ THROW_EXCEPTION_MESSAGE(exception, subtype, message << ": " << filename);
+
inline std::string GetNativeErrorMessage()
{
#ifdef WIN32