jQuery.error()

Takes a string and throws an exception containing it.

jQuery.error(message)

message 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.

Override jQuery.error for display in Firebug.

HTML
jQuery.error = console.error;
DEMO

Looking for a Web Developer?

👋

Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)