4 * The base Savant2_Error class.
6 require_once 'Savant2/Error.php';
9 * The PEAR_ErrorStack class.
11 require_once 'PEAR/ErrorStack.php';
15 * Provides an interface to PEAR_ErrorStack class for Savant.
17 * $Id: Savant2_Error_stack.php,v 1.2 2005/08/09 22:19:39 pmjones Exp $
19 * @author Paul M. Jones <pmjones@ciaweb.net>
23 * @license LGPL http://www.gnu.org/copyleft/lesser.html
25 * This program is free software; you can redistribute it and/or modify
26 * it under the terms of the GNU Lesser General Public License as
27 * published by the Free Software Foundation; either version 2.1 of the
28 * License, or (at your option) any later version.
30 * This program is distributed in the hope that it will be useful, but
31 * WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33 * Lesser General Public License for more details.
37 class Savant2_Error_stack extends Savant2_Error {
42 * Pushes an error onto the PEAR_ErrorStack.
50 // push an error onto the stack
51 PEAR_ErrorStack::staticPush(
52 'Savant2', // package name
53 $this->code, // error code
55 $this->info, // user info
56 $this->text // error message