summaryrefslogtreecommitdiff
path: root/lib/common/BoxException.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/BoxException.h')
-rw-r--r--lib/common/BoxException.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common/BoxException.h b/lib/common/BoxException.h
index 361f04e8..e3a2268a 100644
--- a/lib/common/BoxException.h
+++ b/lib/common/BoxException.h
@@ -34,6 +34,9 @@ public:
private:
};
+#define EXCEPTION_IS_TYPE(exception_obj, type, subtype) \
+ (exception_obj.GetType() == type::ExceptionType && \
+ exception_obj.GetSubType() == type::subtype)
#endif // BOXEXCEPTION__H