Nếu loại lỗi là AUTHENTICATION, thì tiện ích bổ sung phải cung cấp một URL gọi lại vào tiện ích bổ sung để cho phép người dùng đăng nhập. Độ dài tối đa của trường này là 1800 ký tự.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eConferenceError\u003c/code\u003e objects represent errors that occur within conferencing add-ons and can be created using \u003ccode\u003eConferenceDataService.newConferenceError()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese errors have a type, which can be set using \u003ccode\u003esetConferenceErrorType()\u003c/code\u003e, and may require an authentication URL if the type is \u003ccode\u003eAUTHENTICATION\u003c/code\u003e, set using \u003ccode\u003esetAuthenticationUrl()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf the error type is \u003ccode\u003eAUTHENTICATION\u003c/code\u003e, the provided authentication URL should redirect users back to the add-on for login purposes and should be a valid http/https URL with a maximum length of 1800 characters.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003esetAuthenticationUrl()\u003c/code\u003e and \u003ccode\u003esetConferenceErrorType()\u003c/code\u003e return the \u003ccode\u003eConferenceError\u003c/code\u003e object itself, enabling method chaining for easier error configuration.\u003c/p\u003e\n"]]],[],null,["# Class ConferenceError\n\nConferenceError\n\nError that occurred in a conferencing add-on. Example usage:\n\n```javascript\nconst conferenceError =\n ConferenceDataService.newConferenceError().setConferenceErrorType(\n ConferenceDataService.ConferenceErrorType.PERMANENT,\n );\n```\nExample with authentication: \n\n```javascript\nconst state = ScriptApp.newStateToken()\n .withMethod('myLoginCallbackFunction')\n .withTimeout(3600)\n .createToken();\n\nconst authenticationUrl = `https://script.google.com/a/google.com/d/${\n ScriptApp.getScriptId()}/usercallback?state=${state}`;\n\nconst conferenceError =\n ConferenceDataService.newConferenceError()\n .setConferenceErrorType(\n ConferenceDataService.ConferenceErrorType.AUTHENTICATION,\n )\n .setAuthenticationUrl(authenticationUrl);\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------------------------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [setAuthenticationUrl(authenticationUrl)](#setAuthenticationUrl(String)) | [ConferenceError](#) | If the error type is [AUTHENTICATION](/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. |\n| [setConferenceErrorType(conferenceErrorType)](#setConferenceErrorType(ConferenceErrorType)) | [ConferenceError](#) | Sets the error type of this [ConferenceError](#). |\n\nDetailed documentation\n----------------------\n\n### `set``Authentication``Url(authenticationUrl)`\n\nIf the error type is [AUTHENTICATION](/apps-script/reference/conference-data/conference-error-type#AUTHENTICATION), the add-on must\nprovide a URL calling back into the add-on to allow users to log in. The maximum length for\nthis field is 1800 characters.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------------------|----------|--------------------------------|\n| `authentication``Url` | `String` | The authentication URL to set. |\n\n#### Return\n\n\n[ConferenceError](#) --- this object, for chaining\n\n#### Throws\n\n\n[`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\nlong.\n\n*** ** * ** ***\n\n### `set``Conference``Error``Type(conferenceErrorType)`\n\nSets the error type of this [ConferenceError](#).\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------------------|-------------------------------------------------------------------------------------|---------------------------|\n| `conference``Error``Type` | [ConferenceErrorType](/apps-script/reference/conference-data/conference-error-type) | The type of error to set. |\n\n#### Return\n\n\n[ConferenceError](#) --- this object, for chaining"]]