1 | import type { WindowCapacitor } from './definitions-internal';
|
2 | export declare enum ExceptionCode {
|
3 | |
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | Unimplemented = "UNIMPLEMENTED",
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Unavailable = "UNAVAILABLE"
|
18 | }
|
19 | export interface ExceptionData {
|
20 | [key: string]: any;
|
21 | }
|
22 | export declare class CapacitorException extends Error {
|
23 | readonly message: string;
|
24 | readonly code?: ExceptionCode;
|
25 | readonly data?: ExceptionData;
|
26 | constructor(message: string, code?: ExceptionCode, data?: ExceptionData);
|
27 | }
|
28 | export declare const getPlatformId: (win: WindowCapacitor) => 'android' | 'ios' | 'web';
|