Signed-off-by: Dejan Geci <dejan.geci@gmail.com>
@@ -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.
*