The site-wide error handler in CFAdmin should catch all errors, even compile-time errors (a syntax error, in this case). The problem is if your site-wide error handler has an error in there, then you're out of luck. It's a good idea to have your site-wide handler to be just a static file, or a very basic file that should avoid erroring out. Common errors that happen on the site-wide error handler is when referencing error variables, because they don't exist for all error types (like error.message)
Ray Camden has a very good article and very long discussion on Error Handling at http://www.coldfusionjedi.com/index.cfm/2007/12/5/The-Complete-Guide-to-Adding-Error-Handling-to-Your-ColdFusion-Application That CF livedoc link that Charlie Griefer sent should be required reading for everyone, and has a lot of information on handling errors. On 2/8/2011 6:58 PM, Brian Cain wrote: > Error handling is for run time errors. Your second example is a compile > error. You cannot use error handling to fix this. You could try a site wide > error handler, but that probably won't work either. > > Brian Cain > > Sent from my iPhone > > On Feb 8, 2011, at 7:30 PM, Richard Steele<[email protected]> wrote: > >> Is there anyway to catch coldfusion programming errors? >> >> <cfoutput>#999sdflkjsdf;lk#</cfoutput> is caught by my error handler. >> >> But<cfoutput>#alsdk;fjlkj#</cfoutpu >> is not. >> >> Thanks in advance. >> >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342039 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

