Re: How do I extract Error Information from Structure?

2008-08-01 Thread Michael Brennan-White
Josh,

Thank you very much.  That got me going on the path to what I need to 
accomplish.  

Once again, thanks,

Michael

>Here is a little function I use to send myself error messages - 
>arguments.exc is the exception structure that the onError method receives - 
>I pass it through to an Error.cfc.
>
>
>
>   Error Report: #DateFormat(Now(),"long")#, 
>#TimeFormat(Now(),"long")#
>   #arguments.exc.message#
>   The error occurred in 
>#arguments.exc.TagContext[1].template#
>   #arguments.exc.detail#
>
>
>   
>   #arguments.exc.TagContext[i].Template#, 
>Line #arguments.exc.TagContext[i].Line#
>   
>
>
>
>-- Josh
>
>
>> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310050
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I extract Error Information from Structure?

2008-07-31 Thread Josh Nathanson
Here is a little function I use to send myself error messages - 
arguments.exc is the exception structure that the onError method receives - 
I pass it through to an Error.cfc.



   Error Report: #DateFormat(Now(),"long")#, 
#TimeFormat(Now(),"long")#
   #arguments.exc.message#
   The error occurred in 
#arguments.exc.TagContext[1].template#
   #arguments.exc.detail#


   
   #arguments.exc.TagContext[i].Template#, 
Line #arguments.exc.TagContext[i].Line#
   



-- Josh


- Original Message - 
From: "Michael Brennan-White" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, July 31, 2008 1:17 PM
Subject: How do I extract Error Information from Structure?


> My error function sends me error information through email.  In addition I 
> would like to place this information into a database table to track the 
> number of times the error happens and indicate when the error is resolved.
>
> Error  (struct)
>  - TagContext (struct)
>   - error (array)
> -Error (struct)
>   column
>   line
>   template
>
> For expression type errors, there is a structure named tagcontext which 
> has an array named error which has a structure named error.  The column, 
> line and template values are what I am trying to insert into the database 
> (among other fields).  How would I access these items?
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310033
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


How do I extract Error Information from Structure?

2008-07-31 Thread Michael Brennan-White
My error function sends me error information through email.  In addition I 
would like to place this information into a database table to track the number 
of times the error happens and indicate when the error is resolved.  

Error  (struct)
  - TagContext (struct)
   - error (array)
 -Error (struct)
   column
   line
   template

For expression type errors, there is a structure named tagcontext which has an 
array named error which has a structure named error.  The column, line and 
template values are what I am trying to insert into the database (among other 
fields).  How would I access these items?  

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310029
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4