Doctrine\DBAL\Schema\SchemaException
Synopsis
class SchemaException
extends DBALException
{
- // constants
- const TABLE_DOESNT_EXIST = 10;
- const TABLE_ALREADY_EXISTS = 20;
- const COLUMN_DOESNT_EXIST = 30;
- const COLUMN_ALREADY_EXISTS = 40;
- const INDEX_DOESNT_EXIST = 50;
- const INDEX_ALREADY_EXISTS = 60;
- const SEQUENCE_DOENST_EXIST = 70;
- const SEQUENCE_ALREADY_EXISTS = 80;
- const INDEX_INVALID_NAME = 90;
- const FOREIGNKEY_DOESNT_EXIST = 100;
- // Inherited members from Exception
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // methods
- public static SchemaException tableDoesNotExist()
- public static SchemaException indexNameInvalid()
- public static SchemaException indexDoesNotExist()
- public static SchemaException indexAlreadyExists()
- public static SchemaException columnDoesNotExist()
- public static SchemaException tableAlreadyExists()
- public static SchemaException columnAlreadyExists()
- public static SchemaException sequenceAlreadyExists()
- public static SchemaException sequenceDoesNotExist()
- public static SchemaException foreignKeyDoesNotExist()
- public static void namedForeignKeyRequired()
- public static void alterTableChangeNotSupported()
- // Inherited methods from DBALException
- public static void notSupported()
- public static void invalidPlatformSpecified()
- public static void invalidPdoInstance()
- public static void driverRequired()
- public static void unknownDriver()
- public static void driverExceptionDuringQuery()
- public static void invalidWrapperClass()
- public static void invalidDriverClass()
- public static DBALException invalidTableName()
- public static DBALException noColumnsSpecifiedForTable()
- public static void limitOffsetInvalid()
- public static void typeExists()
- public static void unknownColumnType()
- public static void typeNotFound()
- // Inherited methods from Exception
- public void __construct()
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
Hierarchy
Extends
Constants
Name | Value |
---|---|
TABLE_DOESNT_EXIST | 10 |
TABLE_ALREADY_EXISTS | 20 |
COLUMN_DOESNT_EXIST | 30 |
COLUMN_ALREADY_EXISTS | 40 |
INDEX_DOESNT_EXIST | 50 |
INDEX_ALREADY_EXISTS | 60 |
SEQUENCE_DOENST_EXIST | 70 |
SEQUENCE_ALREADY_EXISTS | 80 |
INDEX_INVALID_NAME | 90 |
FOREIGNKEY_DOESNT_EXIST | 100 |
Members
protected
- $code
—
int
The exception code - $file
—
string
The filename where the exception was created - $line
—
int
The line where the exception was created - $message
—
string
The exception message
Methods
public
- alterTableChangeNotSupported()
- columnAlreadyExists()
- columnDoesNotExist()
- foreignKeyDoesNotExist()
- indexAlreadyExists()
- indexDoesNotExist()
- indexNameInvalid()
- namedForeignKeyRequired()
- sequenceAlreadyExists()
- sequenceDoesNotExist()
- tableAlreadyExists()
- tableDoesNotExist()
Inherited from Doctrine\DBAL\DBALException
public
- driverExceptionDuringQuery()
- driverRequired()
- invalidDriverClass()
- invalidPdoInstance()
- invalidPlatformSpecified()
- invalidTableName()
- invalidWrapperClass()
- limitOffsetInvalid()
- noColumnsSpecifiedForTable()
- notSupported()
- typeExists()
- typeNotFound()
- unknownColumnType()
- unknownDriver()
Inherited from Exception
public
- __toString() — String representation of the exception
- getCode() — Gets the Exception code
- getFile() — Gets the file in which the exception occurred
- getLine() — Gets the line in which the exception occurred
- getMessage() — Gets the Exception message
- getPrevious() — Returns previous Exception
- getTrace() — Gets the stack trace
- getTraceAsString() — Gets the stack trace as a string