trigger_error ? Generates a user-level error/warning/notice message
This function is useful when you need to generate a particular response to an exception at runtime.
Re: PHP trigger_error
The designated error message for this error. It's limited to 1024 characters in length. Any additional characters beyond 1024 will be truncated.
The designated error type for this error. It only works with the E_USER family of constants, and will default to E_USER_NOTICE.
This function returns FALSE if wrong error_type is specified, TRUE otherwise.
E_USER_ERROR - Fatal user-generated run-time error. Errors that can not be recovered from. Execution of the script is halted.
E_USER_WARNING - Non-fatal user-generated run-time warning. Execution of the script is not halted.
E_USER_NOTICE - Default. User-generated run-time notice. The script found something that might be an error, but could also happen when running a script normally.