CCFXRequest::GetQuery
Syntax
CCFXQuery* CCFXRequest::GetQuery(void)
Description
Retrieves a query that was passed to a tag. To pass a query to a custom tag, you use the
attribute. This attribute should be set to the name of a query (created using the CFQUERY tag or
another custom tag). The
an existing data set.
Returns
Returns an object of the
query was passed to the tag,
freed automatically by ColdFusion after the request is completed.
Example
The following example retrieves the query that was passed to the tag. If no query was passed, an
exception is thrown:
CCFXQuery* pQuery = pRequest->GetQuery() ;
if ( pQuery == NULL )
{
pRequest->ThrowException(
}
CCFXRequest::ReThrowException
Syntax
void CCFXRequest::ReThrowException(CCFXException* e)
Description
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
CCFXRequest::ThrowException
Parameters
Parameter
e
762
Chapter 4: ColdFusion C++ CFX Reference
attribute is optional and should be used only by tags that process
QUERY
CCFXQuery class
is returned. The memory allocated for the returned query is
NULL
"Missing QUERY parameter",
"You must pass a QUERY parameter in "
"order for this tag to work correctly." ) ;
CCFXException class
.
Description
A CCFXException that has been caught
that represents the query passed to the tag. If no
) or create and throw a new exception pointer using
QUERY