Merge pull request #1320 from dejangeci/feature/dbexception-inner
Added a getInner method for retrieving the inner exception
This commit is contained in:
@@ -24,6 +24,16 @@ class Exception extends \Exception {
|
||||
$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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user