Error.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * @author Wolfram Kriesing <wolfram@kriesing.de>
  24. * @package Tree
  25. */
  26. class Tree_Error extends PEAR_Error
  27. {
  28. /**
  29. * @var string prefix for error messages.
  30. */
  31. var $error_message_prefix = "Tree Error: ";
  32. /**
  33. *
  34. *
  35. * @access public
  36. * @version 2002/03/03
  37. * @author Wolfram Kriesing <wolfram@kriesing.de>
  38. * @param
  39. * @return
  40. */
  41. function Tree_Error( $msg , $line , $file , $mode=null , $userinfo='no userinfo' )
  42. {
  43. $this->PEAR_Error( sprintf("%s <br/>in %s [%d].", $msg, $file, $line),
  44. null , $mode , null, $userinfo );
  45. }
  46. } // end of class
  47. ?>