http://www.perlmonks.org?node_id=130659


in reply to Re: CGI Error Handling
in thread CGI Error Handling

I mean application level error. How does your own exception handling routine look like?
I usually write a database-abstraction-layer (and plan to write a general modul for this purpose). I'm not sure how I should handle errors that occur in this layer. Should the script specify an error template and the database-layers shows this page if an error occurs? Or should the database-layer only return a false value and stores the errortext/-code in a datastructure? The script then can retrieve this errortext and prints the errortemplate.