Added a getInner method for retrieving the inner exception
Signed-off-by: Dejan Geci <dejan.geci@gmail.com>
This commit is contained in:
parent
790a540620
commit
165da94aee
|
@ -24,6 +24,16 @@ public function __construct($sql, $bindings, \Exception $inner)
|
|||
$this->setMessage($sql, $bindings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the inner exception.
|
||||
*
|
||||
* @return Exception
|
||||
*/
|
||||
public function getInner()
|
||||
{
|
||||
return $this->inner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the exception message to include the SQL and bindings.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue