Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 400 and 403] [Versions 401 and 403]

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace ZipStream\Exception;
   6  
   7  use ZipStream\Exception;
   8  
   9  /**
  10   * This Exception gets invoked if `fread` fails on a stream.
  11   */
  12  class StreamNotReadableException extends Exception
  13  {
  14      /**
  15       * Constructor of the Exception
  16       *
  17       * @param string $fileName - The name of the file which the stream belongs to.
  18       */
  19      public function __construct(string $fileName)
  20      {
  21          parent::__construct("The stream for $fileName could not be read.");
  22      }
  23  }