@@ 32-43 (lines=12) @@ | ||
29 | * @param int $code |
|
30 | * @param \Exception|null $previous |
|
31 | */ |
|
32 | public function __construct( |
|
33 | $message, |
|
34 | RequestInterface $request, |
|
35 | array $errorInfo = [], |
|
36 | $code = 0, |
|
37 | \Exception $previous = null |
|
38 | ) { |
|
39 | $this->request = $request; |
|
40 | $errorInfo = array_merge($this->getDetailsArray(), $errorInfo); |
|
41 | ||
42 | parent::__construct($message, $errorInfo, $code, $previous); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @return RequestInterface |
@@ 32-43 (lines=12) @@ | ||
29 | * @param int $code |
|
30 | * @param \Exception|null $previous |
|
31 | */ |
|
32 | public function __construct( |
|
33 | $message, |
|
34 | ResponseInterface $response, |
|
35 | array $errorInfo = [], |
|
36 | $code = 0, |
|
37 | \Exception $previous = null |
|
38 | ) { |
|
39 | $this->response = $response; |
|
40 | $errorInfo = array_merge($this->getDetailsArray(), $errorInfo); |
|
41 | ||
42 | parent::__construct($message, $errorInfo, $code, $previous); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @return ResponseInterface |