420 |
florian |
1 |
<?php
|
|
|
2 |
//
|
|
|
3 |
// +----------------------------------------------------------------------+
|
|
|
4 |
// | Copyright (c) 1997-2005 Ulf Wendel, Pierre-Alain Joye |
|
|
|
5 |
// +----------------------------------------------------------------------+
|
|
|
6 |
// | This source file is subject to the New BSD license, That is bundled |
|
|
|
7 |
// | with this package in the file LICENSE, and is available through |
|
|
|
8 |
// | the world-wide-web at |
|
|
|
9 |
// | http://www.opensource.org/licenses/bsd-license.php |
|
|
|
10 |
// | If you did not receive a copy of the new BSD license and are unable |
|
|
|
11 |
// | to obtain it through the world-wide-web, please send a note to |
|
|
|
12 |
// | pajoye@php.net so we can mail you a copy immediately. |
|
|
|
13 |
// +----------------------------------------------------------------------+
|
|
|
14 |
// | Author: Ulf Wendel <ulf.wendel@phpdoc.de> |
|
|
|
15 |
// | Pierre-Alain Joye <pajoye@php.net> |
|
|
|
16 |
// +----------------------------------------------------------------------+
|
|
|
17 |
//
|
|
|
18 |
// $Id: IT_Error.php,v 1.3 2006/08/17 15:44:31 dsp Exp $
|
|
|
19 |
|
|
|
20 |
require_once "PEAR.php";
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* IT[X] Error class
|
|
|
24 |
*
|
|
|
25 |
* @package HTML_Template_IT
|
|
|
26 |
*/
|
|
|
27 |
class IT_Error extends PEAR_Error {
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Prefix of all error messages.
|
|
|
32 |
*
|
|
|
33 |
* @var string
|
|
|
34 |
*/
|
|
|
35 |
var $error_message_prefix = "IntegratedTemplate Error: ";
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* Creates an cache error object.
|
|
|
39 |
*
|
|
|
40 |
* @param string error message
|
|
|
41 |
* @param string file where the error occured
|
|
|
42 |
* @param string linenumber where the error occured
|
|
|
43 |
*/
|
|
|
44 |
function IT_Error($msg, $file = __FILE__, $line = __LINE__) {
|
|
|
45 |
|
|
|
46 |
$this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
|
|
|
47 |
|
|
|
48 |
} // end func IT_Error
|
|
|
49 |
|
|
|
50 |
} // end class IT_Error
|
|
|
51 |
?>
|