this is what i use
<cftry>
code you want to check
<cfcatch type="ANY">
<!--- custom tag --->
<cf_email_errors type="#cfcatch.Type#" message="#cfcatch.Message#" detail="#cfcatch.Detail#" TagContext="#cfcatch.TagContext#" Subject="eCAPRIS - Website Error">
<!--- custom error page that you want to display --->
<cflocation url="index.cfm?main=home&sub=error" addtoken="no">
</cfcatch>
</cftry>
<!--- custome tag******************************************************** --->
<!--- Set Variable Defaults --->
<cfparam name="attributes.subject" default="NA">
<cfparam name="attributes.type" default="NA">
<cfparam name="attributes.message" default="NA">
<cfparam name="attributes.detail" default="NA">
<cfparam name="attributes.TagContext" default="NA">
<cfset theError = attributes.tagContext[ArrayLen(attributes.tagContext)]>
<cfset variables.getPages = "">
<cfset variables.pageList = "">
<cfloop from="1" to="#ArrayLen(attributes.tagContext)#" index="i">
<cfset sCurrent = attributes.tagContext
/>
<cfif NOT listFind(variables.getPages,sCurrent["TEMPLATE"],","
>
<cfset variables.getPages = listAppend(variables.getPages, sCurrent["TEMPLATE"],","
>
</cfif>
</cfloop>
<cfset variables.pageList = listChangeDelims(variables.getPages,"<br>", ","
>
<!--- Send Email Alert With Debug Info --->
<cfmail to="#request.adminEmail#" from="#request.adminEmail#" subject="#attributes.subject#" type="HTML">
<strong>username:</strong> - #session.USER_NAME#<br>
<strong>employee id:</strong> - #session.EMPLOYEE_ID#<br>
<strong>email_addr:</strong> - #session.email_addr#<br>
<hr>
<strong>Error Type:</strong> - #attributes.Type#<br>
<strong>Error Message:</strong> - #attributes.Message#
<strong>Error Details:</strong><br>
#attributes.Detail# <br>
<hr>
The error occurred while processing an element with a general identifier of (#theError["ID"]#), occupying document position (#theError["LINE"]#:#theError["COLUMN"]#) in the template file #theError["TEMPLATE"]#.
<hr>
<br>
<strong><u>All Templates Called For this Display:</u></strong>
<br>
<br>
#variables.pageList#
</cfmail>
<!--- --->
<!--- ******************************************************************* --->
------------------------------------------------------------------------------
brannonH
if( !succeed ) try( );