You are not logged in.
Login
or
Register
.
JsPHP: a JavaScript library providing the PHP API
Home
Register
Demo
Categories
Functions
Contributors
Download
Links
Comments
FAQ
Contact
View
Edit
Benchmark
Revisions
Developers
Dependencies
Talk
Links
user_error:
Edit: user_error
Function:
user_error
View user_error
Edit user_error
Edit code
Edit tests
Edit benchmark
View latest code
Edit latest code
Benchmark user_error
Comment on user_error
Comment on the latest code
View revisions
View versions
View contributors
View dependencies
View comments
View links
Download production code
Download development code
View the PHP docs
View phpjs.org
View phpjs.org raw code
Description:
Alias of trigger_error().
Edit function
Code
:
function user_error (error_msg, error_type) { // http://jsphp.co/jsphp/fn/view/user_error // + original by: Brett Zamir (http://brett-zamir.me) // - depends on: trigger_error // * example 1: user_error('Cannot divide by zero', 256); // * returns 1: true return this.trigger_error(error_msg, error_type); }
You have to be logged in to edit functions.
[
top
]
Comments
There are no comments yet, be the first!
Please
Login
or
Register
to post comments.