W3cubDocs

/Symfony 4.1

ExceptionCaster

class ExceptionCaster

Casts common Exception classes to array representation.

Properties

static $srcContext
static $traceArgs
static $errorTypes

Methods

static castError(Error $e, array $a, Stub $stub, $isNested, $filter = 0)
static castException(Exception $e, array $a, Stub $stub, $isNested, $filter = 0)
static castErrorException(ErrorException $e, array $a, Stub $stub, $isNested)
static castThrowingCasterException(ThrowingCasterException $e, array $a, Stub $stub, $isNested)
static castSilencedErrorContext(SilencedErrorContext $e, array $a, Stub $stub, $isNested)
static castTraceStub(TraceStub $trace, array $a, Stub $stub, $isNested)
static castFrameStub(FrameStub $frame, array $a, Stub $stub, $isNested)

Details

static castError(Error $e, array $a, Stub $stub, $isNested, $filter = 0)

Parameters

Error $e
array $a
Stub $stub
$isNested
$filter

static castException(Exception $e, array $a, Stub $stub, $isNested, $filter = 0)

Parameters

Exception $e
array $a
Stub $stub
$isNested
$filter

static castErrorException(ErrorException $e, array $a, Stub $stub, $isNested)

Parameters

ErrorException $e
array $a
Stub $stub
$isNested

static castThrowingCasterException(ThrowingCasterException $e, array $a, Stub $stub, $isNested)

Parameters

ThrowingCasterException $e
array $a
Stub $stub
$isNested

static castSilencedErrorContext(SilencedErrorContext $e, array $a, Stub $stub, $isNested)

Parameters

SilencedErrorContext $e
array $a
Stub $stub
$isNested

static castTraceStub(TraceStub $trace, array $a, Stub $stub, $isNested)

Parameters

TraceStub $trace
array $a
Stub $stub
$isNested

static castFrameStub(FrameStub $frame, array $a, Stub $stub, $isNested)

Parameters

FrameStub $frame
array $a
Stub $stub
$isNested

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/VarDumper/Caster/ExceptionCaster.html