API Documentation for: 1.1.1
Show:

HTML5Error Class

Extends Exception
Namespace: Canteen\HTML5

Exceptions with using the HTML5 API.

try
{
    html('invalid', 'something');
}
catch(Canteen\HTML5\HTML5Error $e)
{
    $e->getMessage();
}

Constructor

HTML5Error

(
  • code
  • [data='']
)

Parameters:

  • code Int

    The code of the error

  • [data=''] String optional

    Additional data to associate with this error

Item Index

Properties

Properties

EMPTY_ATTRIBUTE_NAME

Int final static

The database connection failed

EMPTY_ATTRIBUTE_VALUE

Int final static

The alias for a database is invalid

EMPTY_CHILD

Int final static

The child node is empty

EMPTY_NODE_TAG

Int final static

When trying to create a node, the name is empty

EMPTY_PARENT

Int final static

The parent cannot be empty

INVALID_GETTER

Int final static

The mysql where trying to execute was a problem

INVALID_NODE

Int final static

The node is not of instance type Node

INVALID_SETTER

Int final static

The database name we're trying to switch to is invalid

INVALID_TAG

Int final static

The html tag name is invalid

messages

Dictionary private static

Look-up for error messages

OUT_OF_BOUNDS

Int final static

THe addChildAt is out of bounds

UNKNOWN

String final static

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