Newer Version Available

This content describes an older version of this product. View Latest

error()

Deprecated. For a serious error that has no recovery path, throw a standard JavaScript error instead by using throw new Error(msg).

Signature

error (String msg, Error e)

Parameters

msg
Type: String
The error message to display to the user.
e
Type: Error
The error message to display to the user.