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