Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exception Handling for CFCOMPONENT Extends? 1

Status
Not open for further replies.

Glowball

Programmer
Oct 6, 2001
373
0
0
US
Hi all, I'd like to use an Application.cfc file in my root directory, and I'd like it to extend another CFC. I want to call the other CFC using a mapping. In other words:

<cfcomponent extends="mapping_name.cfc_name">

Naturally, everything breaks if the mapping doesn't exist. I want to be able to gracefully handle this issue if it happens, but I can't figure out how to trap the error. How would I handle this error? Thanks!
 
So are you saying that this is an error that you can't trap?
 
A site-wide error handler might catch it. But afaik, there is no graceful way to catch what is essentially a compilation error in the Application.cfc. You just have to ensure the path is correct.

----------------------------------
 
Okay, thanks for the info, I was afraid of that. Oh well!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top