error()

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

error (String msg, Error e)

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

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