| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXRequest class > CCFXRequest::ReThrowException |
|
|
|
|
||
void CCFXRequest::ReThrowException(CCFXException* e)
Re-throws an exception that has been caught within an extension procedure. This function is used to avoid having C++ exceptions that are thrown by DLL extension code propagate back into ColdFusion. Catch ALL C++ exceptions that occur in extension code, and either re-throw them (if they are of the CCFXException class) or create and throw a new exception pointer using CCFXRequest::ThrowException.
Parameter |
Description |
|---|---|
e |
A CCFXException that has been caught |
The following code demonstrates how to handle exceptions in ColdFusion Extension DLL procedures:
try
{
...Code that could throw an exception...
}
catch( CCFXException* e )
{
...Do appropriate resource cleanup here...
// Re-throw the exception
pRequest->ReThrowException( e ) ;
}
catch( ... )
{
// Something nasty happened
pRequest->ThrowException(
"Unexpected error occurred in CFX tag", "" ) ;
}
|
|
||
| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXRequest class > CCFXRequest::ReThrowException |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.