Class UserError

UserError

コネクタのユーザーに表示されるエラー。

var cc = DataStudioApp.createCommunityConnector();

cc.newUserError()
  .setText("This is the debug error text.")
  .setDebugText("This text is only shown to admins.")
  .throwException();

Methods

メソッド戻り値の型概要
printJson()Stringこのオブジェクトの JSON 表現を出力します。
setDebugText(text)UserError管理者にのみ表示されます。
setText(text)UserErrorユーザーエラーのテキストを設定します。
throwException()voidこの例外のスローをトリガーします。

詳細なドキュメント

printJson()

このオブジェクトの JSON 表現を出力します。これはデバッグ専用です。

リターン

String


setDebugText(text)

管理者にのみ表示されます。

パラメータ

名前説明
textStringエラーテキスト。

リターン

UserError - このオブジェクト(チェーン用)。


setText(text)

ユーザーエラーのテキストを設定します。

パラメータ

名前説明
textStringエラーテキスト。

リターン

UserError - このオブジェクト(チェーン用)。


throwException()

この例外のスローをトリガーします。