arc:throw 关键字用于从脚本中抛出错误(异常)。
参数
- code:用于标识异常来源或含义的字符串值。此参数是必需的。
- desc[ription]:可选参数,用于指定描述错误条件的简短消息。
- details:可选参数,包含诊断错误时可能有用的附加信息。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 arc:throw 从脚本中抛出错误(异常),并提供标识代码以及可选的描述和详细信息。
arc:throw 关键字用于从脚本中抛出错误(异常)。
<arc:throw code="myerror" desc="thedescription" />