Skip to content

Commit

Permalink
refactor: add previous exception for serialization exception
Browse files Browse the repository at this point in the history
Co-authored-by: Przemysław Żydek <[email protected]>
  • Loading branch information
Orkuncakilkaya and TheUnderScorer authored Jul 25, 2024
1 parent bfea23a commit 6e0d193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SerializationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ final class SerializationException extends Exception
{
protected readonly ResponseInterface $response;

public function __construct(ResponseInterface $response)
public function __construct(ResponseInterface $response, Exception $prev)
{
parent::__construct("Response from the server couldn't be serialized");
parent::__construct("Response from the server couldn't be serialized", $prev->getCode(), $prev);
$this->response = $response;
}

Expand Down

0 comments on commit 6e0d193

Please sign in to comment.