HumHub Documentation (unofficial)

IntegrityException extends Exception
in package

Exception represents an exception that is caused by violation of DB constraints.

Tags
author

Alexander Makarov sam@rmcreative.ru

since
2.0

Table of Contents

Properties

$errorInfo  : array<string|int, mixed>

Methods

__construct()  : mixed
Constructor.
__toString()  : string
getName()  : string

Properties

$errorInfo

public array<string|int, mixed> $errorInfo = []

the error info provided by a PDO exception. This is the same as returned by PDO::errorInfo.

Methods

__construct()

Constructor.

public __construct(string $message[, array<string|int, mixed> $errorInfo = [] ][, string $code = '' ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string

PDO error message

$errorInfo : array<string|int, mixed> = []

PDO error info

$code : string = ''

PDO error code

$previous : Throwable|null = null

The previous exception used for the exception chaining.

__toString()

public __toString() : string
Return values
string

readable representation of exception

getName()

public getName() : string
Return values
string

the user-friendly name of this exception


        
On this page

Search results