new RtcError()
RtcError error object
Extends
- Error
Members
(static, readonly) code
- See:
-
- Detailed error code list: ErrorCode
Error code
(static, readonly) extraCode
- See:
-
- Detailed error code list: ErrorCode
Extended error code
(static, readonly) functionName
The name of the function that throws the error
(static, readonly) message
Error message
(static, readonly) handler
- Since:
-
- v5.2.0
Error handler. For the following errors, you can call error.handler() for recovering.
- ErrorCode.DEVICE_ERROR extraCode: 5302
trtc.startLocalAudio().catch(error => { if (error.extraCode === 5302 && typeof error.handler === 'function') { // Prompt the user the browser permission(camera/microphone/screen sharing) has been denied by system. The browser will jump to the System Settings APP, please enable the relevant permissions! // Available in Windows and MacOS. error.handler(); } })