Merge pull request #1320 from dejangeci/feature/dbexception-inner

Added a getInner method for retrieving the inner exception
This commit is contained in:
Taylor Otwell
2012-10-07 12:05:01 -07:00

View File

@@ -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.
*