Documentation

DatabaseRequired extends Exception
in package

Tags
psalm-immutable

Table of Contents

Methods

driverRequired()  : self
invalidDriverClass()  : self
invalidPlatformType()  : self
invalidPlatformVersionSpecified()  : self
Returns a new instance for an invalid specified platform version.
invalidWrapperClass()  : self
new()  : self
noColumnsSpecifiedForTable()  : self
notSupported()  : self
typeAlreadyRegistered()  : self
typeExists()  : self
typeNotFound()  : self
typeNotRegistered()  : self
unknownColumnType()  : self
unknownDriver()  : self

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

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

new()

public static new(string $methodName) : self
Parameters
$methodName : 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