inner = $inner; $this->setMessage($sql, $bindings); } /** * Set the exception message to include the SQL and bindings. * * @param string $sql * @param array $bindings * @return void */ protected function setMessage($sql, $bindings) { $this->message = $this->inner->getMessage(); $this->message .= "\n\nSQL: ".$sql."\n\nBindings: ".var_export($bindings, true); } }