PHPCon Poland 2024

The mysqli_sql_exception class

(PHP 5, PHP 7, PHP 8)

Giriş

The mysqli exception handling class.

Sınıf Sözdizimi

final class mysqli_sql_exception extends RuntimeException {
/* Özellikler */
protected string $sqlstate = "00000";
/* Miras alınan özellikler */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Yöntemler */
public getSqlState(): string
/* Miras alınan yöntemler */
public Exception::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
}

Özellikler

sqlstate

The sql state with the error.

İçindekiler

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top