API Documentation for: 1.1.1
Show:

DatabaseError Class

Extends Exception
Namespace: Canteen\Database

Create the database error

Constructor

DatabaseError

(
  • code
  • [data='']
)

Parameters:

  • code Int

    The code of the error

  • [data=''] String optional

    The extra data to pass with the error

Item Index

Properties

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.

UNKNOWN

String final static

The label for an error that is unknown or unfound in messages