- * @param string $message The Database error message.
- * @param int $code The Database error code.
- * @param string $query The Database error query.
- * @param Throwable $previous [optional] The previous throwable used for the exception chaining.
+ * @param string $message The Database error message.
+ * @param int $code The Database error code.
+ * @param string $query The Database error query.
+ * @param Throwable|null $previous [optional] The previous throwable used for the exception chaining.