工具编写与调试应用代码编辑生成ArkTSDoc文档标准标签@throws本页总览@throws @throws标签用于函数,记录函数可能引发的错误。可以在一个ArkTSDoc注释中多次使用@throws标记。 语法 @throws description 示例 使用带有描述的 @throws 标记: /** * @throws Will throw an error if the argument is null. */export function bar(x: number) { throw new Error();}