@@ -58,6 +58,9 @@ export declare class ContextData {
5858export interface IEnvironmentInfoCollector {
5959 getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
6060}
61+ export interface IErrorParser {
62+ parse ( context : EventPluginContext , exception : Error ) : Promise < IError > ;
63+ }
6164export interface IRequestInfoCollector {
6265 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
6366}
@@ -76,6 +79,7 @@ export interface IConfigurationSettings {
7679 apiKey ?: string ;
7780 serverUrl ?: string ;
7881 environmentInfoCollector ?: IEnvironmentInfoCollector ;
82+ errorParser ?: IErrorParser ;
7983 lastReferenceIdManager ?: ILastReferenceIdManager ;
8084 log ?: ILog ;
8185 requestInfoCollector ?: IRequestInfoCollector ;
@@ -162,6 +166,7 @@ export declare class Configuration implements IConfigurationSettings {
162166 private _serverUrl ;
163167 private _plugins ;
164168 environmentInfoCollector : IEnvironmentInfoCollector ;
169+ errorParser : IErrorParser ;
165170 lastReferenceIdManager : ILastReferenceIdManager ;
166171 log : ILog ;
167172 requestInfoCollector : IRequestInfoCollector ;
@@ -201,6 +206,7 @@ export declare class EventBuilder {
201206 addTags ( ...tags : string [ ] ) : EventBuilder ;
202207 setProperty ( name : string , value : any ) : EventBuilder ;
203208 markAsCritical ( critical : boolean ) : EventBuilder ;
209+ addRequestInfo ( request : any ) : EventBuilder ;
204210 submit ( ) : Promise < any > ;
205211 private isValidIdentifier ( value ) ;
206212}
@@ -214,8 +220,8 @@ export declare class ExceptionlessClient {
214220 constructor ( apiKey : string , serverUrl ?: string ) ;
215221 createException ( exception : Error ) : EventBuilder ;
216222 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 > ;
219225 createFeatureUsage ( feature : string ) : EventBuilder ;
220226 submitFeatureUsage ( feature : string ) : Promise < any > ;
221227 createLog ( message : string ) : EventBuilder ;
@@ -285,9 +291,6 @@ export declare class ErrorPlugin implements IEventPlugin {
285291 priority : number ;
286292 name : string ;
287293 run ( context : EventPluginContext ) : Promise < any > ;
288- private processError ( context , exception , stackFrames ) ;
289- private onParseError ( context ) ;
290- private getStackFrames ( context , stackFrames ) ;
291294}
292295export declare class DuplicateCheckerPlugin implements IEventPlugin {
293296 priority : number ;
@@ -358,6 +361,10 @@ export declare class NodeEnvironmentInfoCollector implements IEnvironmentInfoCol
358361 getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
359362 private getIpAddresses ( ) ;
360363}
364+ export declare class NodeErrorParser implements IErrorParser {
365+ parse ( context : EventPluginContext , exception : Error ) : Promise < IError > ;
366+ private getStackFrames ( context , stackFrames ) ;
367+ }
361368export declare class NodeRequestInfoCollector implements IRequestInfoCollector {
362369 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
363370}
@@ -373,6 +380,12 @@ export declare class NodeBootstrapper implements IBootstrapper {
373380 private getExitCodeReason ( code ) ;
374381 private isNode ( ) ;
375382}
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+ }
376389export declare class WebRequestInfoCollector implements IRequestInfoCollector {
377390 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
378391 private getCookies ( ) ;
0 commit comments