@@ -58,6 +58,9 @@ export declare class ContextData {
58
58
export interface IEnvironmentInfoCollector {
59
59
getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
60
60
}
61
+ export interface IErrorParser {
62
+ parse ( context : EventPluginContext , exception : Error ) : Promise < IError > ;
63
+ }
61
64
export interface IRequestInfoCollector {
62
65
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
63
66
}
@@ -76,6 +79,7 @@ export interface IConfigurationSettings {
76
79
apiKey ?: string ;
77
80
serverUrl ?: string ;
78
81
environmentInfoCollector ?: IEnvironmentInfoCollector ;
82
+ errorParser ?: IErrorParser ;
79
83
lastReferenceIdManager ?: ILastReferenceIdManager ;
80
84
log ?: ILog ;
81
85
requestInfoCollector ?: IRequestInfoCollector ;
@@ -162,6 +166,7 @@ export declare class Configuration implements IConfigurationSettings {
162
166
private _serverUrl ;
163
167
private _plugins ;
164
168
environmentInfoCollector : IEnvironmentInfoCollector ;
169
+ errorParser : IErrorParser ;
165
170
lastReferenceIdManager : ILastReferenceIdManager ;
166
171
log : ILog ;
167
172
requestInfoCollector : IRequestInfoCollector ;
@@ -201,6 +206,7 @@ export declare class EventBuilder {
201
206
addTags ( ...tags : string [ ] ) : EventBuilder ;
202
207
setProperty ( name : string , value : any ) : EventBuilder ;
203
208
markAsCritical ( critical : boolean ) : EventBuilder ;
209
+ addRequestInfo ( request : any ) : EventBuilder ;
204
210
submit ( ) : Promise < any > ;
205
211
private isValidIdentifier ( value ) ;
206
212
}
@@ -214,8 +220,8 @@ export declare class ExceptionlessClient {
214
220
constructor ( apiKey : string , serverUrl ?: string ) ;
215
221
createException ( exception : Error ) : EventBuilder ;
216
222
submitException ( exception : Error ) : Promise < any > ;
217
- createUnhandledException ( exception : Error ) : EventBuilder ;
218
- submitUnhandledException ( exception : Error ) : Promise < any > ;
223
+ createUnhandledException ( exception : Error , submissionMethod ?: string ) : EventBuilder ;
224
+ submitUnhandledException ( exception : Error , submissionMethod ?: string ) : Promise < any > ;
219
225
createFeatureUsage ( feature : string ) : EventBuilder ;
220
226
submitFeatureUsage ( feature : string ) : Promise < any > ;
221
227
createLog ( message : string ) : EventBuilder ;
@@ -285,9 +291,6 @@ export declare class ErrorPlugin implements IEventPlugin {
285
291
priority : number ;
286
292
name : string ;
287
293
run ( context : EventPluginContext ) : Promise < any > ;
288
- private processError ( context , exception , stackFrames ) ;
289
- private onParseError ( context ) ;
290
- private getStackFrames ( context , stackFrames ) ;
291
294
}
292
295
export declare class DuplicateCheckerPlugin implements IEventPlugin {
293
296
priority : number ;
@@ -358,6 +361,10 @@ export declare class NodeEnvironmentInfoCollector implements IEnvironmentInfoCol
358
361
getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
359
362
private getIpAddresses ( ) ;
360
363
}
364
+ export declare class NodeErrorParser implements IErrorParser {
365
+ parse ( context : EventPluginContext , exception : Error ) : Promise < IError > ;
366
+ private getStackFrames ( context , stackFrames ) ;
367
+ }
361
368
export declare class NodeRequestInfoCollector implements IRequestInfoCollector {
362
369
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
363
370
}
@@ -373,6 +380,12 @@ export declare class NodeBootstrapper implements IBootstrapper {
373
380
private getExitCodeReason ( code ) ;
374
381
private isNode ( ) ;
375
382
}
383
+ export declare class WebErrorParser implements IErrorParser {
384
+ parse ( context : EventPluginContext , exception : Error ) : Promise < IError > ;
385
+ private processError ( context , exception , stackFrames ) ;
386
+ private onParseError ( context ) ;
387
+ private getStackFrames ( context , stackFrames ) ;
388
+ }
376
389
export declare class WebRequestInfoCollector implements IRequestInfoCollector {
377
390
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
378
391
private getCookies ( ) ;
0 commit comments