]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - config/nagiosql/pear/HTML/Template/IT_Error.php
3 * Integrated Template - IT
7 * Copyright (c) 1997-2007 Ulf Wendel, Pierre-Alain Joye,
10 * This source file is subject to the New BSD license, That is bundled
11 * with this package in the file LICENSE, and is available through
12 * the world-wide-web at
13 * http://www.opensource.org/licenses/bsd-license.php
14 * If you did not receive a copy of the new BSDlicense and are unable
15 * to obtain it through the world-wide-web, please send a note to
16 * pajoye@php.net so we can mail you a copy immediately.
18 * Author: Ulf Wendel <ulf.wendel@phpdoc.de>
19 * Pierre-Alain Joye <pajoye@php.net>
20 * David Soria Parra <dsp@php.net>
23 * @package HTML_Template_IT
24 * @author Ulf Wendel <uw@netuse.de>
25 * @license BSD http://www.opensource.org/licenses/bsd-license.php
26 * @version CVS: $Id: IT_Error.php,v 1.4 2008/11/09 12:30:27 clockwerx Exp $
27 * @link http://pear.php.net/packages/HTML_Template_IT
31 require_once "PEAR.php";
37 * @package HTML_Template_IT
38 * @author Ulf Wendel <uw@netuse.de>
39 * @license BSD http://www.opensource.org/licenses/bsd-license.php
40 * @link http://pear.php.net/packages/HTML_Template_IT
43 class IT_Error
extends PEAR_Error
46 * Prefix of all error messages.
50 var $error_message_prefix = "IntegratedTemplate Error: ";
53 * Creates an cache error object.
55 * @param string $msg error message
56 * @param string $file file where the error occured
57 * @param string $line linenumber where the error occured
59 function IT_Error($msg, $file = __FILE__
, $line = __LINE__
)
61 $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
62 } // end func IT_Error
64 } // end class IT_Error