Ccfxexception Class; Class Members; Ccfxexception::geterror; Ccfxexception::getdiagnostics - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

294

CCFXException Class

Abstract class that represents an exception thrown during the processing of a
ColdFusion Extension (CFX) procedure.
Exceptions of this type can be thrown by
CCFXStringSet
handle exceptions of this type. (See the
CCFXRequest::ReThrowException

Class members

virtual LPCSTR GetError()
The
virtual LPCSTR GetDiagnostic()
The

CCFXException::GetError

This function provides basic user output for exception that occur during processing.

CCFXException::GetDiagnostics

This function provides detailed user output for exception that occur during
processing.
Example
This code block shows how both functions work with ThrowException and
ReThrowException.
// Write output back to the user here...
pRequest->Write( "Hello from CFX_FOO2!" ) ;
pRequest->ThrowException("User Error", "You goof'd...");
// Output optional debug info
if ( pRequest->Debug() )
{
pRequest->WriteDebug( "Debug info..." ) ;
}
}
// Catch Cold Fusion exceptions & re-raise them
catch( CCFXException* e )
{
// This is how you would pull the error information
LPCTSTR strError = e->GetError();
LPCTSTR strDiagnostic = e->GetDiagnostics();
Class. Your ColdFusion Extension code must therefore be written to
CCFXException::GetError
CCFXException::GetDiagnostics
Developing Web Applications with ColdFusion
CCFXRequest
Class,
CCFXRequest::ThrowException
tags for details on doing this correctly.)
function returns a general error message.
function returns detailed error information.
CCFXQuery
Class, and
and

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents