~ubuntu-branches/ubuntu/trusty/fusionforge/trusty

« back to all changes in this revision

Viewing changes to plugins/wiki/www/lib/pear/Cache/Error.php

  • Committer: Bazaar Package Importer
  • Author(s): Roland Mas
  • Date: 2011-04-15 14:55:34 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110415145534-mvn1nochufjmw177
Tags: 5.0.3-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
// $Id: Error.php 6184 2008-08-22 10:33:41Z vargenau $
 
19
 
 
20
require_once 'PEAR.php';
 
21
 
 
22
/**
 
23
* Cache Error class
 
24
 
25
* @package Cache
 
26
*/
 
27
class Cache_Error extends PEAR_Error {
 
28
 
 
29
 
 
30
  /**
 
31
  * Prefix of all error messages.
 
32
  * 
 
33
  * @var  string
 
34
  */
 
35
  var $error_message_prefix = 'Cache-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 Cache_Error($msg, $file = __FILE__, $line = __LINE__) {
 
45
    
 
46
    $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
 
47
    
 
48
  } // end func Cache_Error
 
49
  
 
50
} // end class Cache_Error
 
51
?>
 
 
b'\\ No newline at end of file'