File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1- import { ErrorInfo } from "./data/ErrorInfo.js" ;
1+ import {
2+ ErrorInfo ,
3+ SimpleError
4+ } from "./data/ErrorInfo.js" ;
25import { EnvironmentInfo } from "./data/EnvironmentInfo.js" ;
36import { RequestInfo } from "./data/RequestInfo.js" ;
47import { UserInfo } from "./data/UserInfo.js" ;
@@ -44,7 +47,7 @@ export const enum KnownEventDataKeys {
4447
4548interface IData extends Record < string , any > {
4649 "@error" ?: ErrorInfo ;
47- "@simple_error" ?: any ; // TODO: Need a model for simple error
50+ "@simple_error" ?: SimpleError ;
4851 "@request" ?: RequestInfo ;
4952 "@environment" ?: EnvironmentInfo ;
5053 "@user" ?: UserInfo ;
Original file line number Diff line number Diff line change 11import { ModuleInfo } from "./ModuleInfo.js" ;
22
3+ export interface SimpleError {
4+ message ?: string ;
5+ type ?: string ;
6+ stack_trace ?: string ;
7+ data ?: any ;
8+ inner ?: SimpleError ;
9+ }
10+
311export interface InnerErrorInfo {
412 message ?: string ;
513 type ?: string ;
You can’t perform that action at this time.
0 commit comments