I've read the documentation, and when I use the following:

type: #cfcatch.type#<br>
message: #cfcatch.message#<br>
detail: #cfcatch.detail# <br>
extended info: #cfcatch.extendedinfo#

It returns the following error message which is not very discriptive:

type: _expression_
message: Element DSN is undefined in ATTRIBUTES.
detail:
extended info:

I need to know what template is throwing the error and what line number like in the default cf error messages. When there are nested templates it can be difficult to know where the error originated, but in the following example I know exactly what caused the error:

Error Occurred While Processing Request  
Element DSN is undefined in ATTRIBUTES.  
The error occurred in F:\WebSites\Test\TableCorners\columnwrap.cfm: line 3
1 : <cftry>
2 :
3 : <CFQUERY NAME="GetRecords" DATASOURCE="#attributes.dsn#">
4 :   SELET  
5 :     #attributes.fieldnames#

The above error was generate from the same page as my 1st example except I commented the "any" cfcatch block.

I want to be able to email error messages with the same detail as in the default error messages.

>> From: Stan Winchester
>>
>> Is there a way to get CFCATCH to display the default CFMX
>> errors? Specifically I want to know the template name and
>> line number where the error occurred, so I can have them
>> emailed to me.
>
>http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a10.htm
>
>Gotta love the documentation
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to