![]() |
|
Thrown when validating an incorrect form. More...
Public Member Functions | |
InvalidFieldException ($message_code, $field_name=null, $required_value= '', $code=0, Exception $previous=null) | |
getFieldName () | |
Static Public Member Functions | |
static | generateMessage ($message_code, $field_name= '', $required_value= '') |
Data Fields | |
$messages | |
$field_name | |
Thrown when validating an incorrect form.
InvalidFieldException | ( | $message_code, | |
$field_name = null , |
|||
$required_value = '' , |
|||
$code = 0 , |
|||
Exception | $previous = null |
||
) |
Constructor
string | $message_code | : [optional] message to output |
string | $field_name | : [optional] name of the field the exception was thrown for |
string | $required_value | : [optional] |
int | $code | : [optional] |
Exception | $previous | : [optional] |
|
static |
Generates form validation message according to the messagecode given
string | $message_code | : code for the message |
string | $field_name | : [optional] name of the field the exception was thrown for |
string | $required_value | : [optional] value required for the field |
getFieldName | ( | ) |
Get the field the exception was trown for
$messages |
array : map of field required-types and their messages
$field_name |
string : Name of the field the exception was thrown for