agora-meeting-sdk
Version:
For publishing npm package agora-metting-sdk (Web). Get more information from https://docs.agora.io
13 lines (12 loc) • 443 B
TypeScript
export declare type GenericErrorExtraOptions = {
errCode: string;
};
export declare class GenericError extends Error {
stack?: string;
code?: number;
errCode?: string;
toast?: string;
constructor(err: any, extra?: GenericErrorExtraOptions);
[Symbol.toPrimitive](hint: string): string | undefined;
}
export declare const GenericErrorWrapper: (err: any, extra?: GenericErrorExtraOptions | undefined) => GenericError;