You are here

public static function UnexpectedValueException::fromUncleanUnSerialization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php \Doctrine\Instantiator\Exception\UnexpectedValueException::fromUncleanUnSerialization()

Parameters

ReflectionClass $reflectionClass:

string $errorString:

int $errorCode:

string $errorFile:

int $errorLine:

Return value

UnexpectedValueException

2 calls to UnexpectedValueException::fromUncleanUnSerialization()
Instantiator::checkIfUnSerializationIsSupported in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
UnexpectedValueExceptionTest::testFromUncleanUnSerialization in vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/UnexpectedValueExceptionTest.php

File

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

Class

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

Namespace

Doctrine\Instantiator\Exception

Code

public static function fromUncleanUnSerialization(ReflectionClass $reflectionClass, $errorString, $errorCode, $errorFile, $errorLine) {
  return new self(sprintf('Could not produce an instance of "%s" via un-serialization, since an error was triggered ' . 'in file "%s" at line "%d"', $reflectionClass
    ->getName(), $errorFile, $errorLine), 0, new Exception($errorString, $errorCode));
}