class UnexpectedTypeException

Same name in this branch

Hierarchy

  • class \Symfony\Component\HttpFoundation\File\Exception\FileException extends \Symfony\Component\HttpFoundation\File\Exception\RuntimeException

Expanded class hierarchy of UnexpectedTypeException

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/Exception/UnexpectedTypeException.php, line 14

Namespace

Symfony\Component\HttpFoundation\File\Exception
View source
class UnexpectedTypeException extends FileException {
  public function __construct($value, $expectedType) {
    parent::__construct(sprintf('Expected argument of type %s, %s given', $expectedType, is_object($value) ? get_class($value) : gettype($value)));
  }

}

Members