Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnexpectedValueException.php

function UnexpectedValueException::fromSerializationTriggeredException

@phpstan-param ReflectionClass<T> $reflectionClass

@template T of object

1 call to UnexpectedValueException::fromSerializationTriggeredException()
Instantiator::attemptInstantiationViaUnSerialization in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
@phpstan-param ReflectionClass<T> $reflectionClass

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php, line 23

Class

UnexpectedValueException
Exception for given parameters causing invalid/unexpected state on instantiation

Namespace

Doctrine\Instantiator\Exception

Code

public static function fromSerializationTriggeredException(ReflectionClass $reflectionClass, Exception $exception) : self {
    return new self(sprintf('An exception was raised while trying to instantiate an instance of "%s" via un-serialization', $reflectionClass->getName()), 0, $exception);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal