Documentation

StatementFailure
in package

One failed statement attempt: what execWithRecovery() classifies on, plus the exception to throw.

Table of Contents

$errorCode  : int
$exception  : Exception
$sqlState  : string|null
executing()  : self
Running the prepared statement failed.
preparing()  : self
Reaching the server or preparing the statement failed.
__construct()  : mixed

Properties

Methods

executing()

Running the prepared statement failed.

public static executing(int $errorCode, string|null $sqlState, string $message, string $query[, mysqli_sql_exception|null $error = null ]) : self
Parameters
$errorCode : int
$sqlState : string|null
$message : string
$query : string
$error : mysqli_sql_exception|null = null
Return values
self —

preparing()

Reaching the server or preparing the statement failed.

public static preparing(int $errorCode, string|null $sqlState, string $message, string $query[, mysqli_sql_exception|null $error = null ]) : self
Parameters
$errorCode : int
$sqlState : string|null
$message : string
$query : string
$error : mysqli_sql_exception|null = null
Return values
self —

__construct()

private __construct(string $prefix, int $errorCode, string|null $sqlState, string $message, string $query, mysqli_sql_exception|null $error) : mixed
Parameters
$prefix : string
$errorCode : int
$sqlState : string|null
$message : string
$query : string
$error : mysqli_sql_exception|null
Return values
mixed —

Search results