HTML5Error Class
Exceptions with using the HTML5 API.
try
{
html('invalid', 'something');
}
catch(Canteen\HTML5\HTML5Error $e)
{
$e->getMessage();
}
Constructor
HTML5Error
(
-
code
-
[data='']
Parameters:
-
code
IntThe code of the error
-
[data='']
String optionalAdditional data to associate with this error
Item Index
Properties
- EMPTY_ATTRIBUTE_NAME static
- EMPTY_ATTRIBUTE_VALUE static
- EMPTY_CHILD static
- EMPTY_NODE_TAG static
- EMPTY_PARENT static
- INVALID_GETTER static
- INVALID_NODE static
- INVALID_SETTER static
- INVALID_TAG static
- messages static
- OUT_OF_BOUNDS static
- UNKNOWN static
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