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

觸發要擲回的例外狀況。