只有连接器的管理员才能看到的错误。
const cc = DataStudioApp.createCommunityConnector(); cc.newDebugError().setText('This is the debug error text.').throwException();
方法
| 方法 | 返回类型 | 简介 | 
|---|---|---|
| print | String | 输出此对象的 JSON 表示法。 | 
| set | Debug | 设置调试错误的文本,该文本仅向管理员显示。 | 
| throw | void | 触发系统抛出此异常。 | 
详细文档
print
输出此对象的 JSON 表示法。这仅用于调试。
返回
String
set
throw
触发系统抛出此异常。