Skip to main content
Version: 1.1.1

Miscellaneous Functions

    fail(message)

抛出带有指定消息的用户错误。
    fail(code, message)

抛出指定消息的用户错误。忽略“code”参数。
    fail(json)

使用 JSON 的“消息”字段中指定的消息抛出用户错误。
    fail(code, message)

抛出用户错误,错误信息由 JSON 的“message”字段指定。
忽略“code”参数。