La classe mysqli_sql_exception

(PHP 5, PHP 7, PHP 8)

Introduction

La classe de gestion des exceptions mysqli.

Synopsis de la classe

finalclassmysqli_sql_exceptionextendsRuntimeException {
protectedstring$sqlstate = "00000";
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}

Propriétés

sqlstate

Le statut SQL avec l'erreur.

Sommaire

To Top