2010 | OriginalPaper | Chapter
onMissingTemplate()—Error Handler and So Much More
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
No matter how good your code is, it will fail. The question is how to minimize the effect of that failure and recover from it. ColdFusion provides many levels of code error handling ranging from cftry/cfcatch blocks all the way up to a site-wide error handler. This is great if the error is code based, but what if the error is due to a missing template? Coldfusion 8 has answered that question by introducing onMissingTemplate(), and in this article Michael Dinowitz examines missing templates and explains how this predefined method works.