The call in question, load_tmpl, would normally return a template object. I'm thinking it should return either a null, or something else that can be easily tested so that the application as a whole can deal nicely with the situation.
In a general sense, if you have an object constructor method, what is the "best practices" behavior for the case where it cannot create the object?
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
In reply to Re: Re: CGI::Application/HTML::Template error handling
by freddo411
in thread CGI::Application/HTML::Template error handling
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |