By throwing an exception, that will in turn invoke the failure callback if the dev provided one. Otherwise the error will be thrown up the chain to the browser.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira