That’s what the Stack Trace is for!  It has the entire call stack dumped for you to see.  All you do is navigate down the trace until you see the name of your component – it will have the method name and line number that caused the error.

 

Roland

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pat Branley
Sent: Friday, April 15, 2005 3:07 AM
To: [email protected]
Subject: Re: [CFCDev] cflocation in cfc

 

one problem ive found with #3 is with error logging.

say ive got this scenario

page.cfm -> a.doSomthing() -> b.doSomething() -> c.doSomething()

sometimes you dont get the correct line number thats causing the error. if the error is logged in b then i points to the line of c.doSomething(), but thats not very helpfull if c.doSomething() is massive! (it shouldnt be i know, but sometimes it is) or even if the chain acutally extends beyond c.

Just wondering how everyone using method #3 treats error Logging ? If you dont do error logging, if their was a requirement for developers to be notifed of the exact line causing exceptions in your code, how would you handle it ?

Pat



Sean Corfield wrote:

On 4/14/05, Adrocknaphobia <[EMAIL PROTECTED]> wrote:
  

1) Defined return.
2) Error handling methods on all components.
3) cfthrow.
    
 
#3 gets my vote.
  
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected] ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]

Reply via email to