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