]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/pear/Cache/Error.php
Remove svn:keywords
[SourceForge/phpwiki.git] / lib / pear / Cache / Error.php
1 <?php
2 // +----------------------------------------------------------------------+
3 // | PEAR :: Cache                                                        |
4 // +----------------------------------------------------------------------+
5 // | Copyright (c) 1997-2003 The PHP Group                                |
6 // +----------------------------------------------------------------------+
7 // | This source file is subject to version 2.0 of the PHP license,       |
8 // | that is bundled with this package in the file LICENSE, and is        |
9 // | available at through the world-wide-web at                           |
10 // | http://www.php.net/license/2_02.txt.                                 |
11 // | If you did not receive a copy of the PHP license and are unable to   |
12 // | obtain it through the world-wide-web, please send a note to          |
13 // | license@php.net so we can mail you a copy immediately.               |
14 // +----------------------------------------------------------------------+
15 // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de>                           |
16 // +----------------------------------------------------------------------+
17
18 require_once 'PEAR.php';
19
20 /**
21 * Cache Error class
22 *
23 * @package Cache
24 */
25 class Cache_Error extends PEAR_Error {
26
27   /**
28   * Prefix of all error messages.
29   *
30   * @var  string
31   */
32   var $error_message_prefix = 'Cache-Error: ';
33
34   /**
35   * Creates an cache error object.
36   *
37   * @param  string  error message
38   * @param  string  file where the error occured
39   * @param  string  linenumber where the error occured
40   */
41   function Cache_Error($msg, $file = __FILE__, $line = __LINE__) {
42
43     $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
44
45   } // end func Cache_Error
46
47 } // end class Cache_Error
48 ?>