AI-generated Key Takeaways
-  ConferenceError represents an error that occurred in a conferencing add-on. 
-  You can set the error type of a ConferenceError using setConferenceErrorType().
-  If the error type is AUTHENTICATION, you can set an authentication URL using setAuthenticationUrl().
Error that occurred in a conferencing add-on. Example usage:
const conferenceError = ConferenceDataService . newConferenceError (). setConferenceErrorType ( ConferenceDataService . ConferenceErrorType . PERMANENT , );
const state = ScriptApp . newStateToken () . withMethod ( 'myLoginCallbackFunction' ) . withTimeout ( 3600 ) . createToken (); const authenticationUrl = `https://script.google.com/a/google.com/d/ ${ ScriptApp . getScriptId () } /usercallback?state= ${ state } ` ; const conferenceError = ConferenceDataService . newConferenceError () . setConferenceErrorType ( ConferenceDataService . ConferenceErrorType . AUTHENTICATION , ) . setAuthenticationUrl ( authenticationUrl );
Methods
| Method | Return type | Brief description | 
|---|---|---|
|  Conference  | If the error type is  AUTHENTICATION 
, the add-on must
provide a URL calling back into the add-on to allow users to log in. | |
|  Conference  | Sets the error type of this  Conference . | 
Detailed documentation
 set  
 
 If the error type is  AUTHENTICATION 
 
, the add-on must
provide a URL calling back into the add-on to allow users to log in. The maximum length for
this field is 1800 characters.
Parameters
| Name | Type | Description | 
|---|---|---|
| authentication  | String | The authentication URL to set. | 
Return
  Conference  
— this object, for chaining
Throws
  Error 
 
— if the provided URL is not a valid http/https URL or is too
    long.
 set  
 
 Sets the error type of this  Conference  
.
Parameters
| Name | Type | Description | 
|---|---|---|
| conference  |  Conference  | The type of error to set. | 
Return
  Conference  
— this object, for chaining

