1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { ErrorFactory } from '@firebase/util';
|
18 | export declare const enum ErrorCode {
|
19 | TRACE_STARTED_BEFORE = "trace started",
|
20 | TRACE_STOPPED_BEFORE = "trace stopped",
|
21 | NONPOSITIVE_TRACE_START_TIME = "nonpositive trace startTime",
|
22 | NONPOSITIVE_TRACE_DURATION = "nonpositive trace duration",
|
23 | NO_WINDOW = "no window",
|
24 | NO_APP_ID = "no app id",
|
25 | NO_PROJECT_ID = "no project id",
|
26 | NO_API_KEY = "no api key",
|
27 | INVALID_CC_LOG = "invalid cc log",
|
28 | FB_NOT_DEFAULT = "FB not default",
|
29 | RC_NOT_OK = "RC response not ok",
|
30 | INVALID_ATTRIBUTE_NAME = "invalid attribute name",
|
31 | INVALID_ATTRIBUTE_VALUE = "invalid attribute value",
|
32 | INVALID_CUSTOM_METRIC_NAME = "invalid custom metric name",
|
33 | INVALID_STRING_MERGER_PARAMETER = "invalid String merger input",
|
34 | ALREADY_INITIALIZED = "already initialized"
|
35 | }
|
36 | interface ErrorParams {
|
37 | [ErrorCode.TRACE_STARTED_BEFORE]: {
|
38 | traceName: string;
|
39 | };
|
40 | [ErrorCode.TRACE_STOPPED_BEFORE]: {
|
41 | traceName: string;
|
42 | };
|
43 | [ErrorCode.NONPOSITIVE_TRACE_START_TIME]: {
|
44 | traceName: string;
|
45 | };
|
46 | [ErrorCode.NONPOSITIVE_TRACE_DURATION]: {
|
47 | traceName: string;
|
48 | };
|
49 | [ErrorCode.INVALID_ATTRIBUTE_NAME]: {
|
50 | attributeName: string;
|
51 | };
|
52 | [ErrorCode.INVALID_ATTRIBUTE_VALUE]: {
|
53 | attributeValue: string;
|
54 | };
|
55 | [ErrorCode.INVALID_CUSTOM_METRIC_NAME]: {
|
56 | customMetricName: string;
|
57 | };
|
58 | }
|
59 | export declare const ERROR_FACTORY: ErrorFactory<ErrorCode, ErrorParams>;
|
60 | export {};
|