Files
v10/dist/dev/core/media-error.d.ts
T

29 lines
799 B
TypeScript

//#region src/core/media-error.d.ts
type Stringable = string | {
toString(): string;
};
declare global {
interface ErrorConstructor {
new (message?: Stringable): Error;
(message?: Stringable): Error;
readonly prototype: Error;
}
}
declare class MediaError extends Error {
static MEDIA_ERR_ABORTED: 1;
static MEDIA_ERR_NETWORK: 2;
static MEDIA_ERR_DECODE: 3;
static MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
static MEDIA_ERR_ENCRYPTED: 5;
static MEDIA_ERR_CUSTOM: 100;
static defaultMessages: Record<number, string>;
name: string;
code: number;
context: string | undefined;
fatal: boolean;
data?: any;
constructor(message?: Stringable, code?: number, fatal?: boolean, context?: string);
}
//#endregion
export { MediaError };
//# sourceMappingURL=media-error.d.ts.map