Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
   1  <?php
   2  
   3  namespace Box\Spout\Reader\Exception;
   4  
   5  use Throwable;
   6  
   7  /**
   8   * Class InvalidValueException
   9   */
  10  class InvalidValueException extends ReaderException
  11  {
  12      /** @var mixed */
  13      private $invalidValue;
  14  
  15      /**
  16       * @param mixed $invalidValue
  17       * @param string $message
  18       * @param int $code
  19       * @param Throwable|null $previous
  20       */
  21      public function __construct($invalidValue, $message = '', $code = 0, Throwable $previous = null)
  22      {
  23          $this->invalidValue = $invalidValue;
  24          parent::__construct($message, $code, $previous);
  25      }
  26  
  27      /**
  28       * @return mixed
  29       */
  30      public function getInvalidValue()
  31      {
  32          return $this->invalidValue;
  33      }
  34  }