[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/phpbb/filesystem/exception/ -> filesystem_exception.php (source)

   1  <?php
   2  /**
   3   *
   4   * This file is part of the phpBB Forum Software package.
   5   *
   6   * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7   * @license GNU General Public License, version 2 (GPL-2.0)
   8   *
   9   * For full copyright and license information, please see
  10   * the docs/CREDITS.txt file.
  11   *
  12   */
  13  
  14  namespace phpbb\filesystem\exception;
  15  
  16  class filesystem_exception extends \phpbb\exception\runtime_exception
  17  {
  18      /**
  19       * Constructor
  20       *
  21       * @param string        $message    The Exception message to throw (must be a language variable).
  22       * @param string        $filename    The file that caused the error.
  23       * @param array            $parameters    The parameters to use with the language var.
  24       * @param \Exception    $previous    The previous runtime_exception used for the runtime_exception chaining.
  25       * @param integer        $code        The Exception code.
  26       */
  27  	public function __construct($message = "", $filename = '', $parameters = array(), \Exception $previous = null, $code = 0)
  28      {
  29          parent::__construct($message, array_merge(array('filename' => $filename), $parameters), $previous, $code);
  30      }
  31  
  32      /**
  33       * Returns the filename that triggered the error
  34       *
  35       * @return string
  36       */
  37  	public function get_filename()
  38      {
  39          $parameters = parent::get_parameters();
  40          return $parameters['filename'];
  41      }
  42  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1