forked from exceptionless/Exceptionless.JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorInfo.ts
More file actions
48 lines (42 loc) · 1.02 KB
/
ErrorInfo.ts
File metadata and controls
48 lines (42 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { ModuleInfo } from "./ModuleInfo.js";
export interface SimpleError {
message?: string;
type?: string;
stack_trace?: string;
data?: Record<string, unknown>;
inner?: SimpleError;
}
export interface InnerErrorInfo {
message?: string;
type?: string;
code?: string;
data?: Record<string, unknown>;
inner?: InnerErrorInfo;
stack_trace?: StackFrameInfo[];
target_method?: MethodInfo;
}
export interface ErrorInfo extends InnerErrorInfo {
modules?: ModuleInfo[];
}
export interface MethodInfo {
data?: Record<string, unknown>;
generic_arguments?: string[];
parameters?: ParameterInfo[];
is_signature_target?: boolean;
declaring_namespace?: string;
declaring_type?: string;
name?: string;
module_id?: number;
}
export interface ParameterInfo {
data?: Record<string, unknown>;
generic_arguments?: string[];
name?: string;
type?: string;
type_namespace?: string;
}
export interface StackFrameInfo extends MethodInfo {
file_name?: string;
line_number?: number;
column?: number;
}