ExceptionDefines.h File Reference


Defines

#define AMQ_CATCH_RETHROW(type)
#define AMQ_CATCH_EXCEPTION_CONVERT(sourceType, targetType)
#define AMQ_CATCHALL_THROW(type)
#define AMQ_CATCHALL_NOTHROW()
#define AMQ_CATCH_NOTHROW(type)

Define Documentation

#define AMQ_CATCH_EXCEPTION_CONVERT sourceType,
targetType   ) 
 

Value:

catch( sourceType& ex ){ \
        targetType target( ex ); \
        target.setMark( __FILE__, __LINE__ ); \
        throw target; \
    }
Macro for catching an exception of one type and then rethrowing as another type.
Parameters:
sourceType the type of the exception to be caught.
targetType the type of the exception to be thrown.

#define AMQ_CATCH_NOTHROW type   ) 
 

Value:

catch( type& ex ){ \
        ex.setMark( __FILE__, __LINE__ ); \
    }
Macro for catching and rethrowing an exception of a given type.
Parameters:
type The type of the exception to throw (e.g. ActiveMQException ).

#define AMQ_CATCH_RETHROW type   ) 
 

Value:

catch( type& ex ){ \
        ex.setMark( __FILE__, __LINE__ ); \
        throw ex; \
    }
Macro for catching and rethrowing an exception of a given type.
Parameters:
type The type of the exception to throw (e.g. ActiveMQException ).

 
#define AMQ_CATCHALL_NOTHROW  ) 
 

Value:

catch( ... ){ \
        exceptions::ActiveMQException ex( __FILE__, __LINE__, \
            "caught unknown exception, not rethrowing" ); \
    }
A catch-all that does not throw an exception, one use would be to catch any exception in a destructor and mark it, but not throw so that cleanup would continue as normal.

#define AMQ_CATCHALL_THROW type   ) 
 

Value:

catch( ... ){ \
        type ex( __FILE__, __LINE__, \
            "caught unknown exception" ); \
        throw ex; \
    }
A catch-all that throws a known exception.
Parameters:
type the type of exception to be thrown.


Generated on Thu Aug 3 18:03:31 2006 for activemq-cpp by  doxygen 1.4.5