UNPKG

529 BPlain TextView Raw
1import { BrowserCompatibility } from "./browserCompatibility";
2import { CustomError } from "./customError";
3
4/**
5 * @hidden
6 */
7export class UnsupportedBrowserError extends CustomError {
8 public readonly data?: BrowserCompatibility;
9
10 // istanbul ignore next
11 constructor(browserCompatibility: BrowserCompatibility) {
12 super({
13 name: "UnsupportedBrowserError",
14 message: "This OS / Browser has one or more missing features preventing it from working correctly"
15 });
16 this.data = browserCompatibility;
17 }
18}