![]() |
|
Thrown when a file upload did not succeed for the reason present within the thrown exception.. More...
Public Member Functions | |
UploadFileException ($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 a file upload did not succeed for the reason present within the thrown exception..
UploadFileException | ( | $message_code, | |
$field_name = null , |
|||
$required_value = '' , |
|||
$code = 0 , |
|||
Exception | $previous = null |
||
) |
Constructor
$message_code | string : [optional] message to output |
$field_name | string : [optional] name of the field the exception was thrown for |
$required_value | string : [optional] |
$previous | Exception : [optional] |
$code | int : [optional] |
|
static |
Generates form validation message according to the messagecode given
$message_code | string : code for the message |
$field_name | string : [optional] name of the field the exception was thrown for |
$required_value | string : [optional] value required for the field |
getFieldName | ( | ) |
Get the field the exception was trown for
$messages |
array : map of upload-error-types and their messages
$field_name |
string : Name of the field the exception was thrown for