Go to the documentation of this file.
18 #ifndef _DECAF_LANG_EXCEPTIONS_EXCEPTIONDEFINES_H_
19 #define _DECAF_LANG_EXCEPTIONS_EXCEPTIONDEFINES_H_
27 #define DECAF_CATCH_RETHROW( type ) \
29 ex.setMark( __FILE__, __LINE__ ); \
39 #define DECAF_CATCH_EXCEPTION_CONVERT( sourceType, targetType ) \
40 catch( sourceType& ex ){ \
41 targetType target( ex.clone() ); \
42 target.setMark( __FILE__, __LINE__ ); \
50 #define DECAF_CATCHALL_THROW( type ) \
52 type ex( __FILE__, __LINE__, \
53 "caught unknown exception" ); \
62 #define DECAF_CATCHALL_NOTHROW( ) \
64 lang::Exception ex( __FILE__, __LINE__, \
65 "caught unknown exception, not rethrowing" ); \
74 #define DECAF_CATCH_NOTHROW( type ) \
76 ex.setMark( __FILE__, __LINE__ ); \