XML_CSSML
[ class tree: XML_CSSML ] [ index: XML_CSSML ] [ all elements ]

Source for file Error.php

Documentation is available at Error.php

  1. <?php
  2. // {{{ license
  3.  
  4. // +----------------------------------------------------------------------+
  5. // | PHP version 4.0                                                      |
  6. // +----------------------------------------------------------------------+
  7. // | Copyright (c) 1997-2003 The PHP Group                                |
  8. // +----------------------------------------------------------------------+
  9. // | This source file is subject to version 2.0 of the PHP license,       |
  10. // | that is bundled with this package in the file LICENSE, and is        |
  11. // | available at through the world-wide-web at                           |
  12. // | http://www.php.net/license/2_02.txt.                                 |
  13. // | If you did not receive a copy of the PHP license and are unable to   |
  14. // | obtain it through the world-wide-web, please send a note to          |
  15. // | license@php.net so we can mail you a copy immediately.               |
  16. // +----------------------------------------------------------------------+
  17. // | Authors: Dan Allen <dan@mojavelinux.com>                             |
  18. // +----------------------------------------------------------------------+
  19.  
  20. // $Id: Error.php,v 1.2 2003/01/04 11:56:29 mj Exp $
  21.  
  22. // }}}
  23. // {{{ description
  24.  
  25. // XML_CSSML is a CSSML to CSS xslt parser
  26.  
  27. // }}}
  28.  
  29. // {{{ class XML_CSSML_Error
  30.  
  31. /**
  32.  * XML_CSSML_Error Class for Error Handling of CSSML
  33.  * @access public
  34.  */
  35.  
  36. // }}}
  37. class XML_CSSML_Error extends PEAR_Error {
  38.     // {{{ properties
  39.  
  40.     /**
  41.      * Message in front of the error message
  42.      * @var string $error_message_prefix 
  43.      */
  44.     var $error_message_prefix 'XML_CSSML Error: ';
  45.     
  46.     // }}}
  47.     // {{{ constructor
  48.  
  49.     /**
  50.     * Creates a XML_CSSML error object, extending the PEAR_Error class
  51.     *
  52.      * @param int   $code the xpath error code
  53.      * @param int   $mode (optional) the reaction either return, die or trigger/callback
  54.      * @param int   $level (optional) intensity of the error (PHP error code)
  55.      * @param mixed $debuginfo (optional) information that can inform user as to nature of error
  56.      *
  57.      * @access private
  58.      */
  59.     function XML_CSSML_Error($code = XML_CSSML_ERROR$mode = PEAR_ERROR_RETURN
  60.                          $level = E_USER_NOTICE$debuginfo = null
  61.     {
  62.         if (is_int($code)) {
  63.             $this->PEAR_Error(XML_CSSML::errorMessage($code)$code$mode$level$debuginfo);
  64.         
  65.         else {
  66.             $this->PEAR_Error("Invalid error code: $code"XML_CSSML_ERROR$mode$level$debuginfo);
  67.         }
  68.     }
  69.  
  70.     // }}}
  71. }
  72. ?>

Documentation generated on Mon, 11 Mar 2019 14:12:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.