\App\Api\ResponseExceptionSerializer

Tool to serialize exceptions

Summary

Methods
Properties
Constants
__construct()
toArray()
jsonSerialize()
toJson()
No public properties found
No constants found
_toArray()
$exception
$verbose
N/A
No private methods found
No private properties found
N/A

Properties

$exception

$exception : \Exception

Type

\Exception

$verbose

$verbose : 

Type

Methods

__construct()

__construct(\Exception  $exception, boolean|null  $verbose = null) 

ExceptionSerializer constructor.

Parameters

\Exception $exception
boolean|null $verbose

Whether to display exception details. Determined by environment if not specified.

toArray()

toArray() 

jsonSerialize()

jsonSerialize() 

toJson()

toJson(  $options) 

Parameters

$options

_toArray()

_toArray(\Exception  $exception) 

Parameters

\Exception $exception