DatabaseError Class
Create the database error
Constructor
DatabaseError
(
-
code
-
[data='']
Parameters:
-
code
IntThe code of the error
-
[data='']
String optionalThe extra data to pass with the error
Item Index
Properties
- CONNECTION_FAILED static
- DEFAULT_REQUIRED static
- EXECUTE static
- INVALID_ALIAS static
- INVALID_DATABASE static
- messages static
- MYSQLI_REQUIRED static
- UNKNOWN static
Properties
CONNECTION_FAILED
Int
final
static
The database connection failed
DEFAULT_REQUIRED
Int
final
static
A default name is required
EXECUTE
Int
final
static
The mysql where trying to execute was a problem
INVALID_ALIAS
Int
final
static
The alias for a database is invalid
INVALID_DATABASE
Int
final
static
The database name we're trying to switch to is invalid
messages
Dictionary
private
static
Look-up for error messages
MYSQLI_REQUIRED
Int
final
static
The MySQLi PHP extension is required.