The mysqli_sql_exception class

(PHP 5, PHP 7, PHP 8)

Introduction

The mysqli exception handling class.

Class synopsis

finalclassmysqli_sql_exceptionextendsRuntimeException {
protectedstring$sqlstate = "00000";
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}

Properties

sqlstate

The sql state with the error.

Table of Contents

To Top