Error Handling / SUMA Error Handling
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.
Learn More
Subtitles of the Movie
I wanted to go through an overview because this was such a heavy-duty section of movies, but I really felt you need to understand the complete error handling structure within ColdFusion in order to properly plan it within your applications. I thought we'd do a brief overview of this section of movies as to exactly what did we do for our application? So, here is how we have our error handling set up within the SUMA application. The first thing that would handle errors are any try and catch tags within the application and those go on the specific page where the code is being run. Then we moved into the onerror method in the application.cfc. The onerror method will override other error handling methods unless it occurs in the onsession end or onapplication start. The onerror method runs but it doesn't output to the user if that occurs, just to clarify that a little bit. CFerror tags, if anything happens to the processing in the onerror method where an error occurs there, it would move down to any CFerror tags you would have set up within application.cfc and there are three different types of errors you can handle using the CFerror tag. We also plugged in the missing template or site-wide error handler, or as this says, the missing template, and we added those as kind of our last-ditch error handling method. So this just kind of gives you an overview of how we have this set up. Now our CFthrow re-throw I kind of ignored up here because that ends up going into specific areas within your application or within your onerror method. So hopefully those two movies for CFtry catch and throw re-throw helped you understand those. But the best way to understand all of those is to play around with it. So I really encourage you to add different types of errors to different pages and just notice how or which error handler covers that error. So this is a complicated section of movies, but hopefully you have a good overview now of all the different options in ColdFusion. Every application is a bit different in terms of error handling, so be sure to evaluate the best method for handling errors within your application. You will also want to be careful which templates you put into the ColdFusion administrator itself. If you are handling different applications using the same ColdFusion server, you don't want one websites page showing up as a global error handler in another website. But we've gone through enough methods now so you should be able to cover any errors within each individual application.
Tutorial Information
| Course: | ColdFusion MX 7 Advanced |
| Author: | Candyce Mairs |
| SKU: | 33828 |
| ISBN: | 1-934743-34-8 |
| Release Date: | 2007-11-30 |
| Duration: | 6 hrs / 89 lessons |
| Work Files: |
Yes |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 