Added a getInner method for retrieving the inner exception

Signed-off-by: Dejan Geci <[email protected]>
This commit is contained in:
Dejan Geci
2012-10-07 13:55:32 +02:00
parent 790a540620
commit 165da94aee
+10
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.
*