Documentation

UnexpectedValueException extends UnexpectedValueException
in package
implements ExceptionInterface

Exception for given parameters causing invalid/unexpected state on instantiation

Table of Contents

Interfaces

ExceptionInterface
Base exception marker interface for the instantiator component

Methods

fromSerializationTriggeredException()  : self
fromUncleanUnSerialization()  : self

Methods

fromSerializationTriggeredException()

public static fromSerializationTriggeredException(ReflectionClass $reflectionClass, Exception $exception) : self
Parameters
$reflectionClass : ReflectionClass
$exception : Exception
Tags
phpstan-param

ReflectionClass<T> $reflectionClass

template

T of object

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
phpstan-param

ReflectionClass<T> $reflectionClass

template

T of object

Return values
self

        
On this page

Search results