Documentation

UnexpectedValueException extends UnexpectedValueException
in package
implements ExceptionInterface

Exception for given parameters causing invalid/unexpected state on instantiation

Interfaces, Classes and Traits

ExceptionInterface
Base exception marker interface for the instantiator component

Table of Contents

fromSerializationTriggeredException()  : self
fromUncleanUnSerialization()  : self

Methods

fromSerializationTriggeredException()

public static fromSerializationTriggeredException(ReflectionClass $reflectionClass, Exception $exception) : self
Parameters
$reflectionClass : ReflectionClass
$exception : Exception
Tags
template

T of object

phpstan-param

ReflectionClass $reflectionClass

Return values
self

fromUncleanUnSerialization()

public static fromUncleanUnSerialization(ReflectionClass $reflectionClass, string $errorString, int $errorCode, string $errorFile, int $errorLine) : self
Parameters
$reflectionClass : ReflectionClass
$errorString : string
$errorCode : int
$errorFile : string
$errorLine : int
Tags
template

T of object

phpstan-param

ReflectionClass $reflectionClass

Return values
self

Search results