Content-Length: 46061 | pFad | https://api.jquery.com/jQuery.error/

jQuery.error() | jQuery API Documentation

jQuery.error()


jQuery.error( message )Returns:

Description: Takes a string and throws an exception containing it.

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
jQuery.error = function( message ) {
sendErrorLog( "jQuery error: " + message );
throw new Error( message );
};








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://api.jquery.com/jQuery.error/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy