Documentation

TransactionNameException extends TransactionQueryException
in package
implements TransactionException

Exception thrown when an invalid transaction/savepoint name is used.

This typically occurs when attempting to commit or rollback a savepoint that doesn't exist.

This can also occur in 'strict transactions' mode if a commit() is called without a valid id.

Table of Contents

Interfaces

TransactionException
Just an interface to match both query and recursion type transaction errors.

Properties

$params  : array<string|int, mixed>
$query  : string
$state  : string

Methods

create()  : static
setParams()  : static
setQuery()  : static
setState()  : static
getSubClass()  : string

Properties

Methods

create()

public static create(PDOException $exception) : static
Parameters
$exception : PDOException
Return values
static

setParams()

public setParams(array<string|int, mixed> $params) : static
Parameters
$params : array<string|int, mixed>
Return values
static

setQuery()

public setQuery(string $query) : static
Parameters
$query : string
Return values
static

setState()

public setState(string|int $state) : static
Parameters
$state : string|int
Return values
static

getSubClass()

protected static getSubClass(PDOException $exception) : string
Parameters
$exception : PDOException
Return values
string —

A subclass of QueryException

On this page

Search results