Added a getInner method for retrieving the inner exception

Signed-off-by: Dejan Geci <dejan.geci@gmail.com>
This commit is contained in:
Dejan Geci 2012-10-07 13:55:32 +02:00
parent 790a540620
commit 165da94aee
1 changed files with 10 additions and 0 deletions

View File

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