public function __construct(array $args = [], $code = 0, Exception $previous = null) { $this->args = $args; $message = $this->makeMessage(); parent::__construct($message, $code, $previous); }
/** * HttpXpressengineException constructor. * * @param array $args arguments array * @param int $statusCode exception status code * @param \Exception|null $previous exception * @param array $headers header * @param int $code code */ public function __construct($args = [], $statusCode = null, \Exception $previous = null, array $headers = [], $code = 0) { if ($statusCode !== null) { $this->statusCode = $statusCode; } $this->headers = $headers; parent::__construct($args, $code, $previous); }