fm_set_error
fm_set_error
bool fm_set_error ( int $error_number
[, string $error_message
] )
Description
Allows you to set an error from within your PHP code. You can then use PHP_GetLastError or fm_get_last_error to check and see if an error was set.
Note that error numbers below 1000 are reserved for plug-in errors and can’t be used by this function.
Parameters
error_number
(required)
The error number to set (must be >= 1000).
error_message
(optional)
A message explaining the error.
Return
Returns true.
Errors
900 Error number must be greater than or equal to 1000
Example 1 - Set an error with message
fm_set_error(1000, 'An unexpected error has occurred, try again and good luck!'); /* Returns: true */
, multiple selections available,