class SchemaException extends DBALException (View source)

Constants

TABLE_DOESNT_EXIST

TABLE_ALREADY_EXISTS

COLUMN_DOESNT_EXIST

COLUMN_ALREADY_EXISTS

INDEX_DOESNT_EXIST

INDEX_ALREADY_EXISTS

SEQUENCE_DOENST_EXIST

SEQUENCE_ALREADY_EXISTS

INDEX_INVALID_NAME

FOREIGNKEY_DOESNT_EXIST

NAMESPACE_ALREADY_EXISTS

Methods

static DBALException
notSupported(string $method)

No description

static 
invalidPlatformSpecified()

No description

static 
invalidPlatformType(mixed $invalidPlatform)

No description

static DBALException
invalidPlatformVersionSpecified(string $version, string $expectedFormat)

Returns a new instance for an invalid specified platform version.

static DBALException
invalidPdoInstance()

No description

static DBALException
driverRequired(string|null $url = null)

No description

static DBALException
unknownDriver(string $unknownDriverName, array $knownDrivers)

No description

static DBALException
driverExceptionDuringQuery(Driver $driver, Exception $driverEx, string $sql, array $params = [])

No description

static DBALException
driverException(Driver $driver, Exception $driverEx)

No description

static DBALException
invalidWrapperClass(string $wrapperClass)

No description

static DBALException
invalidDriverClass(string $driverClass)

No description

static DBALException
invalidTableName(string $tableName)

No description

static DBALException
noColumnsSpecifiedForTable(string $tableName)

No description

static DBALException
limitOffsetInvalid()

No description

static DBALException
typeExists(string $name)

No description

static DBALException
unknownColumnType(string $name)

No description

static DBALException
typeNotFound(string $name)

No description

static SchemaException
tableDoesNotExist(string $tableName)

No description

static SchemaException
indexNameInvalid(string $indexName)

No description

static SchemaException
indexDoesNotExist(string $indexName, string $table)

No description

static SchemaException
indexAlreadyExists(string $indexName, string $table)

No description

static SchemaException
columnDoesNotExist(string $columnName, string $table)

No description

static SchemaException
namespaceAlreadyExists(string $namespaceName)

No description

static SchemaException
tableAlreadyExists(string $tableName)

No description

static SchemaException
columnAlreadyExists(string $tableName, string $columnName)

No description

static SchemaException
sequenceAlreadyExists(string $sequenceName)

No description

static SchemaException
sequenceDoesNotExist(string $sequenceName)

No description

static SchemaException
foreignKeyDoesNotExist(string $fkName, string $table)

No description

static SchemaException
namedForeignKeyRequired(Table $localTable, ForeignKeyConstraint $foreignKey)

No description

static SchemaException
alterTableChangeNotSupported(string $changeName)

No description

Details

static DBALException notSupported(string $method)

Parameters

string $method

Return Value

DBALException

static invalidPlatformSpecified()

static invalidPlatformType(mixed $invalidPlatform)

Parameters

mixed $invalidPlatform

static DBALException invalidPlatformVersionSpecified(string $version, string $expectedFormat)

Returns a new instance for an invalid specified platform version.

Parameters

string $version The invalid platform version given.
string $expectedFormat The expected platform version format.

Return Value

DBALException

static DBALException invalidPdoInstance()

Return Value

DBALException

static DBALException driverRequired(string|null $url = null)

Parameters

string|null $url The URL that was provided in the connection parameters (if any).

Return Value

DBALException

static DBALException unknownDriver(string $unknownDriverName, array $knownDrivers)

Parameters

string $unknownDriverName
array $knownDrivers

Return Value

DBALException

static DBALException driverExceptionDuringQuery(Driver $driver, Exception $driverEx, string $sql, array $params = [])

Parameters

Driver $driver
Exception $driverEx
string $sql
array $params

Return Value

DBALException

static DBALException driverException(Driver $driver, Exception $driverEx)

Parameters

Driver $driver
Exception $driverEx

Return Value

DBALException

static DBALException invalidWrapperClass(string $wrapperClass)

Parameters

string $wrapperClass

Return Value

DBALException

static DBALException invalidDriverClass(string $driverClass)

Parameters

string $driverClass

Return Value

DBALException

static DBALException invalidTableName(string $tableName)

Parameters

string $tableName

Return Value

DBALException

static DBALException noColumnsSpecifiedForTable(string $tableName)

Parameters

string $tableName

Return Value

DBALException

static DBALException limitOffsetInvalid()

Return Value

DBALException

static DBALException typeExists(string $name)

Parameters

string $name

Return Value

DBALException

static DBALException unknownColumnType(string $name)

Parameters

string $name

Return Value

DBALException

static DBALException typeNotFound(string $name)

Parameters

string $name

Return Value

DBALException

static SchemaException tableDoesNotExist(string $tableName)

Parameters

string $tableName

Return Value

SchemaException

static SchemaException indexNameInvalid(string $indexName)

Parameters

string $indexName

Return Value

SchemaException

static SchemaException indexDoesNotExist(string $indexName, string $table)

Parameters

string $indexName
string $table

Return Value

SchemaException

static SchemaException indexAlreadyExists(string $indexName, string $table)

Parameters

string $indexName
string $table

Return Value

SchemaException

static SchemaException columnDoesNotExist(string $columnName, string $table)

Parameters

string $columnName
string $table

Return Value

SchemaException

static SchemaException namespaceAlreadyExists(string $namespaceName)

Parameters

string $namespaceName

Return Value

SchemaException

static SchemaException tableAlreadyExists(string $tableName)

Parameters

string $tableName

Return Value

SchemaException

static SchemaException columnAlreadyExists(string $tableName, string $columnName)

Parameters

string $tableName
string $columnName

Return Value

SchemaException

static SchemaException sequenceAlreadyExists(string $sequenceName)

Parameters

string $sequenceName

Return Value

SchemaException

static SchemaException sequenceDoesNotExist(string $sequenceName)

Parameters

string $sequenceName

Return Value

SchemaException

static SchemaException foreignKeyDoesNotExist(string $fkName, string $table)

Parameters

string $fkName
string $table

Return Value

SchemaException

static SchemaException namedForeignKeyRequired(Table $localTable, ForeignKeyConstraint $foreignKey)

Parameters

Table $localTable
ForeignKeyConstraint $foreignKey

Return Value

SchemaException

static SchemaException alterTableChangeNotSupported(string $changeName)

Parameters

string $changeName

Return Value

SchemaException