PHP Class Doctrine\DBAL\DBALException

Inheritance: extends Exception
Mostra file Open project: doctrine/dbal Class Usage Examples

Public Methods

Method Description
driverException ( Doctrine\DBAL\Driver $driver, Exception $driverEx ) : DBALException
driverExceptionDuringQuery ( Doctrine\DBAL\Driver $driver, Exception $driverEx, string $sql, array $params = [] ) : DBALException
driverRequired ( string | null $url = null ) : DBALException
invalidDriverClass ( string $driverClass ) : DBALException
invalidPdoInstance ( ) : DBALException
invalidPlatformSpecified ( ) : DBALException
invalidPlatformVersionSpecified ( string $version, string $expectedFormat ) : DBALException Returns a new instance for an invalid specified platform version.
invalidTableName ( string $tableName ) : DBALException
invalidWrapperClass ( string $wrapperClass ) : DBALException
limitOffsetInvalid ( ) : DBALException
noColumnsSpecifiedForTable ( string $tableName ) : DBALException
notSupported ( string $method ) : DBALException
typeExists ( string $name ) : DBALException
typeNotFound ( string $name ) : DBALException
unknownColumnType ( string $name ) : DBALException
unknownDriver ( string $unknownDriverName, array $knownDrivers ) : DBALException

Private Methods

Method Description
formatParameters ( array $params ) : string Returns a human-readable representation of an array of parameters.
wrapException ( Doctrine\DBAL\Driver $driver, Exception $driverEx, $msg ) : DBALException

Method Details

driverException() public static method

public static driverException ( Doctrine\DBAL\Driver $driver, Exception $driverEx ) : DBALException
$driver Doctrine\DBAL\Driver
$driverEx Exception
return DBALException

driverExceptionDuringQuery() public static method

public static driverExceptionDuringQuery ( Doctrine\DBAL\Driver $driver, Exception $driverEx, string $sql, array $params = [] ) : DBALException
$driver Doctrine\DBAL\Driver
$driverEx Exception
$sql string
$params array
return DBALException

driverRequired() public static method

public static driverRequired ( string | null $url = null ) : DBALException
$url string | null The URL that was provided in the connection parameters (if any).
return DBALException

invalidDriverClass() public static method

public static invalidDriverClass ( string $driverClass ) : DBALException
$driverClass string
return DBALException

invalidPdoInstance() public static method

public static invalidPdoInstance ( ) : DBALException
return DBALException

invalidPlatformSpecified() public static method

public static invalidPlatformSpecified ( ) : DBALException
return DBALException

invalidPlatformVersionSpecified() public static method

Returns a new instance for an invalid specified platform version.
public static invalidPlatformVersionSpecified ( string $version, string $expectedFormat ) : DBALException
$version string The invalid platform version given.
$expectedFormat string The expected platform version format.
return DBALException

invalidTableName() public static method

public static invalidTableName ( string $tableName ) : DBALException
$tableName string
return DBALException

invalidWrapperClass() public static method

public static invalidWrapperClass ( string $wrapperClass ) : DBALException
$wrapperClass string
return DBALException

limitOffsetInvalid() public static method

public static limitOffsetInvalid ( ) : DBALException
return DBALException

noColumnsSpecifiedForTable() public static method

public static noColumnsSpecifiedForTable ( string $tableName ) : DBALException
$tableName string
return DBALException

notSupported() public static method

public static notSupported ( string $method ) : DBALException
$method string
return DBALException

typeExists() public static method

public static typeExists ( string $name ) : DBALException
$name string
return DBALException

typeNotFound() public static method

public static typeNotFound ( string $name ) : DBALException
$name string
return DBALException

unknownColumnType() public static method

public static unknownColumnType ( string $name ) : DBALException
$name string
return DBALException

unknownDriver() public static method

public static unknownDriver ( string $unknownDriverName, array $knownDrivers ) : DBALException
$unknownDriverName string
$knownDrivers array
return DBALException