The Savant Template System for PHP

The simple, elegant, and powerful alternative to Smarty.

  Savant2 (2.4.3)   Documentation   Contributed Classes   Other Information  
  Documentation   Getting Started   API Reference   Template Plugins   Output Filters   Error Handlers   Markup Compilers  

Savant Versions:

Savant2

Savant3


Please help support Savant; you can donate, or click on a sponsor.

Amazon Honor System Click Here to Pay Learn More

Error Handlers

If you have not done so already, be sure to read the "Getting Started" section on checking for errors.

Savant2 uses its own minimalist error class called Savant2_Error, and reports and returns all errors with this class.

However, if you want to, you can "add on" to the default error handling behavior by using the setError() method with one of these classes:

The benefit of using a custom error handler is that you can make errors reported by Savant2 fit in to any error reporting framework.

Savant2:ErrorRef (pmjones)
Wed Oct 13 15:26:15 2004
[ Links | Source | History | RSS ]

This site powered by YaWiki 0.22 beta.

Copyright © 2003-2010, Paul M. Jones.


No user comments exist for this page.

New comments are disabled.

Error Handlers
PEAR_Error
PEAR_ErrorStack
PHP5 Exception