---
title: "RTCError | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable RTCError

RTCError: {  
    prototype: [RTCError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCError/);  
    new (init: [RTCErrorInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCErrorInit/), message?: string): [RTCError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCError/);  
}

#### Type Declaration

-   -   new (init: [RTCErrorInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCErrorInit/), message?: string): [RTCError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCError/)
    -   #### Parameters
        
        -   init: [RTCErrorInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCErrorInit/)
        -   `Optional`message: string
        
        #### Returns [RTCError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCError/)
        
-   ##### prototype: [RTCError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCError/)
