UserError Class
A user-facing error, such as a form, privilege or validation error.
Located in the namespace Canteen\Errors.
Constructor
Item Index
Methods
Properties
- INSUFFICIENT_PRIVILEGE static
- INVALID_DATA static
- INVALID_DATA_SET static
- INVALID_MYSQL_DATE static
- messages static
Methods
__toString
()
String
Create a simple to string method since users will see theses
Returns:
String:
The string representation of this Error
getResult
()
Dictionary
Get the result object
Returns:
Dictionary:
The result Exception object formatted nicely
Properties
INSUFFICIENT_PRIVILEGE
Int
final
static
The user doesn't have sufficient privileges to perform action
INVALID_DATA
Int
final
static
Validating a property data
INVALID_DATA_SET
Int
final
static
Validating a property against a set of options
INVALID_MYSQL_DATE
Int
final
static
The supplied data is invalidly formatted for MySQL
messages
Dictionary
private
final
static
The collection of error messages