jQuery.error()

jQuery

jQuery.error()


jQuery.error( message ) Returns:

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

  • version added: 1.4.1jQuery.error( message )

    • message
      Type: String
      The 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.

Example:

Override jQuery.error for display in Firebug.

1
                                  
jQuery.error = console.error;