PHP Function Reference

PHP mysqli_sql_exception class



The PHP mysqli_sql_exception class is a 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

❮ PHP MySQLi Reference