\Symfony\Component\VarDumper\CasterExceptionCaster

Casts common Exception classes to array representation.

Summary

Methods
Properties
Constants
castError()
castException()
castErrorException()
castThrowingCasterException()
castSilencedErrorContext()
castTraceStub()
castFrameStub()
$srcContext
$traceArgs
$errorTypes
No constants found
No protected methods found
No protected properties found
N/A
filterExceptionArray()
traceUnshift()
extractSource()
$framesCache
N/A

Properties

$srcContext

$srcContext

$traceArgs

$traceArgs

$errorTypes

$errorTypes

$framesCache

$framesCache

Methods

castError()

castError(\Error  $e, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\Error $e
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

castException()

castException(\Exception  $e, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\Exception $e
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

castErrorException()

castErrorException(\ErrorException  $e, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\ErrorException $e
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castThrowingCasterException()

castThrowingCasterException(\Symfony\Component\VarDumper\Exception\ThrowingCasterException  $e, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\Symfony\Component\VarDumper\Exception\ThrowingCasterException $e
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castSilencedErrorContext()

castSilencedErrorContext(\Symfony\Component\ErrorHandler\Exception\SilencedErrorContext  $e, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\Symfony\Component\ErrorHandler\Exception\SilencedErrorContext $e
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castTraceStub()

castTraceStub(\Symfony\Component\VarDumper\Caster\TraceStub  $trace, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\Symfony\Component\VarDumper\Caster\TraceStub $trace
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castFrameStub()

castFrameStub(\Symfony\Component\VarDumper\Caster\FrameStub  $frame, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\Symfony\Component\VarDumper\Caster\FrameStub $frame
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

filterExceptionArray()

filterExceptionArray(string  $xClass, array  $a, string  $xPrefix, int  $filter) : array

Parameters

string $xClass
array $a
string $xPrefix
int $filter

Returns

array —

traceUnshift()

traceUnshift(array  $trace, ?string  $class, string  $file, int  $line) : void

Parameters

array $trace
?string $class
string $file
int $line

extractSource()

extractSource(string  $srcLines, int  $line, int  $srcContext, string  $lang, ?string  $file, array  $frame) : \Symfony\Component\VarDumper\Caster\EnumStub

Parameters

string $srcLines
int $line
int $srcContext
string $lang
?string $file
array $frame

Returns

\Symfony\Component\VarDumper\Caster\EnumStub —