The mysqli_sql_exception class

From Get docs
Php/docs/latest/class.mysqli-sql-exception


The mysqli_sql_exception class

Introduction

(PHP 5, PHP 7, PHP 8)

The mysqli exception handling class.

Class synopsis

class mysqli_sql_exception extends RuntimeException {

/* Properties */

protected string $sqlstate;

/* Inherited properties */

protected string $message;

protected int $code;

protected string $file;

protected int $line;

}

Properties

sqlstate
The sql state with the error.


© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.mysqli-sql-exception.php