5 * Provides a simple error class for Savant.
7 * $Id: Error.php,v 1.2 2005/08/09 22:19:39 pmjones Exp $
9 * @author Paul M. Jones <pmjones@ciaweb.net>
13 * @license LGPL http://www.gnu.org/copyleft/lesser.html
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License as
17 * published by the Free Software Foundation; either version 2.1 of the
18 * License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful, but
21 * WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
32 * The error code, typically a SAVANT_ERROR_* constant.
45 * An array of error-specific information.
58 * The error message text.
71 * A debug backtrace for the error, if any.
79 var $backtrace = null;
88 * @param array $conf An associative array where the key is a
89 * Savant2_Error property and the value is the value for that
94 function Savant2_Error($conf = array())
96 // set public properties
97 foreach ($conf as $key => $val) {
101 // generate a backtrace
102 if (function_exists('debug_backtrace')) {
103 $this->backtrace = debug_backtrace();
106 // extended behaviors
113 * Stub method for extended behaviors.