# La classe mysqli_sql_exception

(PHP 5, PHP 7, PHP 8)

## Introduction

La classe de gestion des exceptions mysqli.

## Synopsis de la classe

final class mysqli_sql_exception extends RuntimeException {
/* Propriétés */
protected string $sqlstate = "00000";
/* Propriétés héritées */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Méthodes */
public function getSqlState(): string
/* Méthodes héritées */
public function Exception::__construct(string `$message` = "", int `$code` = 0, ?Throwable `$previous` = `null`)
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}

## Propriétés

sqlstate

  Le statut SQL avec l'erreur.

## Sommaire

- mysqli_sql_exception::getSqlState — Renvoie le code d'erreur SQLSTATE

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open