Class ConferenceError

  • ConferenceError represents an error that occurred in a conferencing add-on.

  • You can set the error type of a ConferenceError usingsetConferenceErrorType().

  • If the error type is AUTHENTICATION, you can set an authentication URL usingsetAuthenticationUrl().

ConferenceError

Error that occurred in a conferencing add-on. Example usage:

constconferenceError=ConferenceDataService.newConferenceError().setConferenceErrorType(ConferenceDataService.ConferenceErrorType.PERMANENT,);
Example with authentication:
conststate=ScriptApp.newStateToken().withMethod('myLoginCallbackFunction').withTimeout(3600).createToken();constauthenticationUrl=`https://script.google.com/a/google.com/d/${ScriptApp.getScriptId()}/usercallback?state=${state}`;constconferenceError=ConferenceDataService.newConferenceError().setConferenceErrorType(ConferenceDataService.ConferenceErrorType.AUTHENTICATION,).setAuthenticationUrl(authenticationUrl);

Methods

MethodReturn typeBrief description
setAuthenticationUrl(authenticationUrl)ConferenceErrorIf the error type isAUTHENTICATION, the add-on mustprovide a URL calling back into the add-on to allow users to log in.
setConferenceErrorType(conferenceErrorType)ConferenceErrorSets the error type of thisConferenceError.

Detailed documentation

setAuthenticationUrl(authenticationUrl)

If the error type isAUTHENTICATION, the add-on mustprovide a URL calling back into the add-on to allow users to log in. The maximum length forthis field is 1800 characters.

Parameters

NameTypeDescription
authenticationUrlStringThe authentication URL to set.

Return

ConferenceError — this object, for chaining

Throws

Error — if the provided URL is not a valid http/https URL or is too long.


setConferenceErrorType(conferenceErrorType)

Sets the error type of thisConferenceError.

Parameters

NameTypeDescription
conferenceErrorTypeConferenceErrorTypeThe type of error to set.

Return

ConferenceError — this object, for chaining

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.