__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.