jQuery.error( message )Returns:
Description: Takes a string and throws an exception containing it.
-
version added: 1.4.1jQuery.error( message )
-
messageType: StringThe message to send out.
-
This method exists primarily for plugin developers who wish to override it and provide a better display (or more information) for the error messages.
If you do override the method, remember to still throw an error at the end to preserve semantics.
Example:
Override jQuery.error
to send it to a logging service, assuming the sendErrorLog
method is provided by this service.
1
2
3
4
|
|