Class DebugError

DebugError

只有连接器管理员才能看到的错误。

var 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()

触发此异常被抛出。