Miscellaneous Functions

fail(message)

Throws user error with the specified message.

fail(code, message)

Throws user error with the specified message. Ignores ‘code’ argument.

fail(json)

Throws user error with the message specified in ‘message’ field of the JSON.

fail(code, message)

Throws user error with the message specified in ‘message’ field of the JSON. Ignores ‘code’ argument.