PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/php-pear-HTML-Template-IT-1.3.0/HTML_Template_IT-1.3.0/HTML/Template/IT_Error.php

#
PHP | 65 lines | 11 code | 4 blank | 50 comment | 0 complexity | 484d2aa6a504a351a1d3e2b8bb39612d MD5 | raw file
  1. <?php
  2. /**
  3. * Integrated Template - IT
  4. *
  5. * PHP version 4
  6. *
  7. * Copyright (c) 1997-2007 Ulf Wendel, Pierre-Alain Joye,
  8. * David Soria Parra
  9. *
  10. * This source file is subject to the New BSD license, That is bundled
  11. * with this package in the file LICENSE, and is available through
  12. * the world-wide-web at
  13. * http://www.opensource.org/licenses/bsd-license.php
  14. * If you did not receive a copy of the new BSDlicense and are unable
  15. * to obtain it through the world-wide-web, please send a note to
  16. * pajoye@php.net so we can mail you a copy immediately.
  17. *
  18. * Author: Ulf Wendel <ulf.wendel@phpdoc.de>
  19. * Pierre-Alain Joye <pajoye@php.net>
  20. * David Soria Parra <dsp@php.net>
  21. *
  22. * @category HTML
  23. * @package HTML_Template_IT
  24. * @author Ulf Wendel <uw@netuse.de>
  25. * @license BSD http://www.opensource.org/licenses/bsd-license.php
  26. * @version CVS: $Id: IT_Error.php 295117 2010-02-15 23:25:21Z clockwerx $
  27. * @link http://pear.php.net/packages/HTML_Template_IT
  28. * @access public
  29. */
  30. require_once "PEAR.php";
  31. /**
  32. * IT[X] Error class
  33. *
  34. * @category HTML
  35. * @package HTML_Template_IT
  36. * @author Ulf Wendel <uw@netuse.de>
  37. * @license BSD http://www.opensource.org/licenses/bsd-license.php
  38. * @link http://pear.php.net/packages/HTML_Template_IT
  39. * @access public
  40. */
  41. class IT_Error extends PEAR_Error
  42. {
  43. /**
  44. * Prefix of all error messages.
  45. *
  46. * @var string
  47. */
  48. var $error_message_prefix = "IntegratedTemplate Error: ";
  49. /**
  50. * Creates an cache error object.
  51. *
  52. * @param string $msg error message
  53. * @param string $file file where the error occured
  54. * @param string $line linenumber where the error occured
  55. */
  56. function IT_Error($msg, $file = __FILE__, $line = __LINE__)
  57. {
  58. $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
  59. } // end func IT_Error
  60. } // end class IT_Error
  61. ?>