The mysqli_sql_exception class

(PHP 5, PHP 7)

소개

The mysqli exception handling class.

클래스 개요

mysqli_sql_exception extends RuntimeException {
/* 프로퍼티 */
protected string $sqlstate ;
/* 상속된 프로퍼티 */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
}

프로퍼티

sqlstate

The sql state with the error.

add a note add a note

User Contributed Notes 1 note

up
8
fibrizo dot raziel at gmail dot com
9 years ago
<?php  mysqli_report(MYSQLI_REPORT_STRICT) ?>
was not enough for me to enable exception throwing. I had to write this:
<?php mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); ?>
To Top