1 |
joko |
1.1 |
<?php |
2 |
|
|
// |
3 |
|
|
// +----------------------------------------------------------------------+ |
4 |
|
|
// | PHP Version 4 | |
5 |
|
|
// +----------------------------------------------------------------------+ |
6 |
|
|
// | Copyright (c) 1997-2003 The PHP Group | |
7 |
|
|
// +----------------------------------------------------------------------+ |
8 |
|
|
// | This source file is subject to version 2.02 of the PHP license, | |
9 |
|
|
// | that is bundled with this package in the file LICENSE, and is | |
10 |
|
|
// | available at through the world-wide-web at | |
11 |
|
|
// | http://www.php.net/license/2_02.txt. | |
12 |
|
|
// | If you did not receive a copy of the PHP license and are unable to | |
13 |
|
|
// | obtain it through the world-wide-web, please send a note to | |
14 |
|
|
// | license@php.net so we can mail you a copy immediately. | |
15 |
|
|
// +----------------------------------------------------------------------+ |
16 |
|
|
// | Authors: Wolfram Kriesing <wolfram@kriesing.de> | |
17 |
|
|
// +----------------------------------------------------------------------+ |
18 |
|
|
// |
19 |
|
|
// $Id: Error.php,v 1.3 2003/01/04 11:56:27 mj Exp $ |
20 |
|
|
|
21 |
|
|
/** |
22 |
|
|
* |
23 |
|
|
* |
24 |
|
|
* @author Wolfram Kriesing <wolfram@kriesing.de> |
25 |
|
|
* @package Tree |
26 |
|
|
*/ |
27 |
|
|
class Tree_Error extends PEAR_Error |
28 |
|
|
{ |
29 |
|
|
/** |
30 |
|
|
* @var string prefix for error messages. |
31 |
|
|
*/ |
32 |
|
|
var $error_message_prefix = "Tree Error: "; |
33 |
|
|
|
34 |
|
|
/** |
35 |
|
|
* |
36 |
|
|
* |
37 |
|
|
* @access public |
38 |
|
|
* @version 2002/03/03 |
39 |
|
|
* @author Wolfram Kriesing <wolfram@kriesing.de> |
40 |
|
|
* @param |
41 |
|
|
* @return |
42 |
|
|
*/ |
43 |
|
|
function Tree_Error( $msg , $line , $file , $mode=null , $userinfo='no userinfo' ) |
44 |
|
|
{ |
45 |
|
|
$this->PEAR_Error( sprintf("%s <br/>in %s [%d].", $msg, $file, $line), |
46 |
|
|
null , $mode , null, $userinfo ); |
47 |
|
|
} |
48 |
|
|
|
49 |
|
|
} // end of class |
50 |
|
|
?> |