Ask Ben: Handling Errors With ColdFusion CFError

<!--- Kill extra output. --->
<cfsilent>
 
	<!--- Define the application settings. --->
	<cfapplication
		name="ErrorHandlingDemo"
		applicationtimeout="#CreateTimeSpan( 0, 0, 1, 0 )#"
		sessionmanagement="true"
		sessiontimeout="#CreateTimeSpan( 0, 0, 1, 0 )#"
		setclientcookies="true"
		/>
 
	<!--- Define the page request settigs. --->
	<cfsetting
		requesttimeout="20"
		showdebugoutput="false"
		/>
 
	<!--- Define erorr handling template. --->
	<cferror
		type="exception"
		template="./cferror.cfm"
		/>
 
	<!--- Include functions. --->
	<cfinclude template="functions.cfm" />
 
</cfsilent>

For Cut-and-Paste