# Die Klasse mysqli_sql_exception

(PHP 5, PHP 7, PHP 8)

## Einführung

Die MySQLi-Fehlerbehandlungs-Klasse

## Klassenbeschreibung

final class mysqli_sql_exception extends RuntimeException {
/* Eigenschaften */
protected string $sqlstate = "00000";
/* Geerbte Eigenschaften */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Methoden */
public function getSqlState(): string
/* Geerbte Methoden */
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
}

## Eigenschaften

sqlstate

  Der SQL-Status mit dem Fehler.

## Inhaltsverzeichnis

- mysqli_sql_exception::getSqlState — Liefert den SQLSTATE-Fehlercode

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