Class DebugError

DebugError

仅对连接器的管理员可见的错误。

const cc = DataStudioApp.createCommunityConnector();

cc.newDebugError().setText('This is the debug error text.').throwException();

方法

方法返回类型简介
printJson()String输出此对象的 JSON 表示形式。
setText(text)DebugError设置调试错误的文本,该文本仅向管理员显示。
throwException()void触发此异常的抛出。

详细文档

printJson()

输出此对象的 JSON 表示形式。此属性仅用于调试。

返回

String


setText(text)

设置调试错误的文本,该文本仅向管理员显示。

参数

名称类型说明
textString错误文本。

返回

DebugError - 此对象,用于链式调用。


throwException()

触发此异常的抛出。