From 165da94aee498b96a3303264dbcdd24e8c1cd53d Mon Sep 17 00:00:00 2001 From: Dejan Geci Date: Sun, 7 Oct 2012 13:55:32 +0200 Subject: [PATCH] Added a getInner method for retrieving the inner exception Signed-off-by: Dejan Geci --- laravel/database/exception.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/laravel/database/exception.php b/laravel/database/exception.php index a116ad70..d8f425a5 100644 --- a/laravel/database/exception.php +++ b/laravel/database/exception.php @@ -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. *