[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/library/ezc/Base/src/exceptions/ -> file_not_found.php (source)

   1  <?php
   2  /**
   3   * File containing the ezcBaseFileNotFoundException class
   4   *
   5   * @package Base
   6   * @version 1.8
   7   * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
   8   * @license http://ez.no/licenses/new_bsd New BSD License
   9   */
  10  /**
  11   * ezcBaseFileNotFoundException is thrown when a file or directory was tried to
  12   * be opened, but did not exist.
  13   *
  14   * @package Base
  15   * @version 1.8
  16   */
  17  class ezcBaseFileNotFoundException extends ezcBaseFileException
  18  {
  19      /**
  20       * Constructs a new ezcBaseFileNotFoundException.
  21       *
  22       * @param string $path The name of the file.
  23       * @param string $type The type of the file.
  24       * @param string $message A string with extra information.
  25       */
  26      function __construct( $path, $type = null, $message = null )
  27      {
  28          $typePart = '';
  29          if ( $type )
  30          {
  31              $typePart = "$type ";
  32          }
  33  
  34          $messagePart = '';
  35          if ( $message )
  36          {
  37              $messagePart = " ($message)";
  38          }
  39  
  40          parent::__construct( "The {$typePart}file '{$path}' could not be found.$messagePart" );
  41      }
  42  }
  43  ?>


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7