Documentation

ServerException extends DriverException
in package

Base class for all server related errors detected in the driver.

Tags
psalm-immutable

Table of Contents

Properties

$query  : Query|null
The query that triggered the exception, if any.

Methods

driverRequired()  : self
getQuery()  : Query|null
getSQLState()  : string|null
Returns the SQLSTATE the driver was in at the time the error occurred.
invalidDriverClass()  : self
invalidPlatformType()  : self
invalidPlatformVersionSpecified()  : self
Returns a new instance for an invalid specified platform version.
invalidWrapperClass()  : self
noColumnsSpecifiedForTable()  : self
notSupported()  : self
typeAlreadyRegistered()  : self
typeExists()  : self
typeNotFound()  : self
typeNotRegistered()  : self
unknownColumnType()  : self
unknownDriver()  : self

Properties

Methods

driverRequired()

public static driverRequired([string|null $url = null ]) : self
Parameters
$url : string|null = null

The URL that was provided in the connection parameters (if any).

Return values
self

getSQLState()

Returns the SQLSTATE the driver was in at the time the error occurred.

public getSQLState() : string|null
Return values
string|null

invalidDriverClass()

public static invalidDriverClass(string $driverClass) : self
Parameters
$driverClass : string
Return values
self

invalidPlatformType()

public static invalidPlatformType(mixed $invalidPlatform) : self
Parameters
$invalidPlatform : mixed
Return values
self

invalidPlatformVersionSpecified()

Returns a new instance for an invalid specified platform version.

public static invalidPlatformVersionSpecified(string $version, string $expectedFormat) : self
Parameters
$version : string

The invalid platform version given.

$expectedFormat : string

The expected platform version format.

Return values
self

invalidWrapperClass()

public static invalidWrapperClass(string $wrapperClass) : self
Parameters
$wrapperClass : string
Return values
self

noColumnsSpecifiedForTable()

public static noColumnsSpecifiedForTable(string $tableName) : self
Parameters
$tableName : string
Return values
self

notSupported()

public static notSupported(string $method) : self
Parameters
$method : string
Return values
self

typeAlreadyRegistered()

public static typeAlreadyRegistered(Type $type) : self
Parameters
$type : Type
Return values
self

typeExists()

public static typeExists(string $name) : self
Parameters
$name : string
Return values
self

typeNotFound()

public static typeNotFound(string $name) : self
Parameters
$name : string
Return values
self

typeNotRegistered()

public static typeNotRegistered(Type $type) : self
Parameters
$type : Type
Return values
self

unknownColumnType()

public static unknownColumnType(string $name) : self
Parameters
$name : string
Return values
self

unknownDriver()

public static unknownDriver(string $unknownDriverName, array<string|int, string> $knownDrivers) : self
Parameters
$unknownDriverName : string
$knownDrivers : array<string|int, string>
Return values
self

        
On this page

Search results