Just curious:
What's the reason for copying all of the CFCATCH
variables to the request scope?
Patrick
> -----Original Message-----
> From: BOROVOY Noam [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 15, 2001 12:34 PM
> To: Fusebox
> Subject: RE: act_error.cfm???
>
>
> Posted example code just a couple of weeks ago see:
> http://www.mail-archive.com/[email protected]/msg05592.html
> <http://www.mail-archive.com/[email protected]/msg05592.html>
>
> Here are basic examples, you might add automatic email on errors to the
> webmaster etc.
>
> HTH,
> Noam
>
> A basic act_error.cfm:
> <!--- act_Error.cfm
> Record error information in request vars
> --->
> <CFSet request.ErrType = CFCATCH.Type>
> <CFSet request.ErrMessage = CFCATCH.Message>
> <CFSet request.ErrDetail = CFCATCH.Detail>
> <CFIF CFCATCH.Type is "Database">
> <CFSet request.ErrNativeErrorCode = CFCATCH.NativeErrorCode>
> <CFSet request.ErrSQLState = CFCATCH.SQLState>
> </CFIF>
> <CFSet request.ErrAddress = CGI.PATH_INFO & "?" & CGI.QUERY_STRING>
>
>
> A basic dsp_error:
>
> <CFPARAM name="request.ErrType" default="">
> <CFPARAM name="request.ErrMessage" default="">
> <CFPARAM name="request.ErrDetail" default="">
> <CFPARAM name="request.ErrNativeErrorCode" default="">
> <CFPARAM name="request.ErrSQLState" default="">
> <CFPARAM name="request.ErrAddress" default="">
>
> <cfoutput>
> <P align=center><FONT color=##ff0000 face="">Application Error</FONT></P>
>
> Ooops error, please try again - links back to home page etc. Blah
> Blah Blah
> Send email to ...
>
> <!- HTML comment - so gets sent to the user but is not visible -
> you can get it by viewing the source of the page in the browser
>
> <P>Debug information:</P>
> <P>
> Error type: #request.ErrType#<br>
> Error message: #request.ErrMessage#<br>
> Error detail: #request.ErrDetail#<br>
> <CFIF request.ErrType is "Database">
> Database: #request.ErrNativeErrorCode#<BR>
> SQL: #request.ErrSQLState#<BR>
> </CFIF>
> Template: #request.ErrAddress# <br>
> -->
> </CFOUTPUT>
>
> ----------
> From: Jim Priest [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, 15 January 2001 15:54
> To: Fusebox
> Subject: act_error.cfm???
>
> I'm looking for an 'act_error.cfm/dsp_error.cfm' which I found
> mentioned in the list archives... trying to wrap some of my
> index.cfm
> files with some error checking and am wondering how others are
> handling this problem - looks like using cftry/cfcatch is the way to
> go... just looking for some example code.
>
> Or has anyone come up with anything better?
>
> thanks
> jim
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists