[Box Backup-commit] COMMIT r2676 - box/trunk/lib/common
subversion at boxbackup.org
subversion at boxbackup.org
Thu Mar 18 21:38:46 GMT 2010
Author: chris
Date: 2010-03-18 21:38:45 +0000 (Thu, 18 Mar 2010)
New Revision: 2676
Modified:
box/trunk/lib/common/Logging.h
Log:
Add a new exception macro for throwing exceptions that are related to a
file but not system errors.
Modified: box/trunk/lib/common/Logging.h
===================================================================
--- box/trunk/lib/common/Logging.h 2010-03-10 16:52:42 UTC (rev 2675)
+++ box/trunk/lib/common/Logging.h 2010-03-18 21:38:45 UTC (rev 2676)
@@ -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
More information about the Boxbackup-commit
mailing list