From 432d0a8f7cb0d7f69552c9df22483af1820528a6 Mon Sep 17 00:00:00 2001 From: Korney Czukowski Date: Fri, 16 Feb 2018 14:11:59 +0100 Subject: [PATCH] Previous exception can now be passed to Dibi\Exception constructor (#275) --- src/Dibi/exceptions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dibi/exceptions.php b/src/Dibi/exceptions.php index dc52951c..9d9b61d2 100644 --- a/src/Dibi/exceptions.php +++ b/src/Dibi/exceptions.php @@ -22,9 +22,9 @@ class Exception extends \Exception /** * Construct a dibi exception. */ - public function __construct(string $message = '', $code = 0, string $sql = null) + public function __construct(string $message = '', $code = 0, string $sql = null, \Throwable $previous = null) { - parent::__construct($message); + parent::__construct($message, 0, $previous); $this->code = $code; $this->sql = $sql; }