public static function UnexpectedValueException::fromSerializationTriggeredException in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php \Doctrine\Instantiator\Exception\UnexpectedValueException::fromSerializationTriggeredException()
Parameters
ReflectionClass $reflectionClass:
Exception $exception:
Return value
self
2 calls to UnexpectedValueException::fromSerializationTriggeredException()
- Instantiator::attemptInstantiationViaUnSerialization in vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Instantiator.php - UnexpectedValueExceptionTest::testFromSerializationTriggeredException in vendor/
doctrine/ instantiator/ tests/ DoctrineTest/ InstantiatorTest/ Exception/ UnexpectedValueExceptionTest.php
File
- vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Exception/ UnexpectedValueException.php, line 39
Class
- UnexpectedValueException
- Exception for given parameters causing invalid/unexpected state on instantiation
Namespace
Doctrine\Instantiator\ExceptionCode
public static function fromSerializationTriggeredException(ReflectionClass $reflectionClass, Exception $exception) {
return new self(sprintf('An exception was raised while trying to instantiate an instance of "%s" via un-serialization', $reflectionClass
->getName()), 0, $exception);
}