ConferenceError

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

```javascript
const conferenceError =
    ConferenceDataService.newConferenceError().setConferenceErrorType(
        ConferenceDataService.ConferenceErrorType.PERMANENT,
    );
```
Example with authentication:

```javascript
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 |
|---|---|---|
| `https://developers.google.com/apps-script/reference/conference-data/conference-error#setAuthenticationUrl(String)` | `https://developers.google.com/apps-script/reference/conference-data/conference-error#` | If the error type is `https://developers.google.com/apps-script/reference/conference-data/conference-error-type#AUTHENTICATION`, the add-on must provide a URL calling back into the add-on to allow users to log in. |
| `https://developers.google.com/apps-script/reference/conference-data/conference-error#setConferenceErrorType(ConferenceErrorType)` | `https://developers.google.com/apps-script/reference/conference-data/conference-error#` | Sets the error type of this `https://developers.google.com/apps-script/reference/conference-data/conference-error#`. |

## Detailed documentation

### `setAuthenticationUrl(authenticationUrl)`

If the error type is `https://developers.google.com/apps-script/reference/conference-data/conference-error-type#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 |
|---|---|---|
| `authenticationUrl` | `String` | The authentication URL to set. |

#### Return


`https://developers.google.com/apps-script/reference/conference-data/conference-error#` --- this object, for chaining

#### Throws


[`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) --- if the provided URL is not a valid http/https URL or is too
long.

*** ** * ** ***

### `setConferenceErrorType(conferenceErrorType)`

Sets the error type of this `https://developers.google.com/apps-script/reference/conference-data/conference-error#`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `conferenceErrorType` | `https://developers.google.com/apps-script/reference/conference-data/conference-error-type` | The type of error to set. |

#### Return


`https://developers.google.com/apps-script/reference/conference-data/conference-error#` --- this object, for chaining