@@ -22,7 +22,7 @@ export interface ErrorHandlerOptions {
22
22
*/
23
23
@Injectable ( { providedIn : 'root' } )
24
24
class SentryErrorHandler implements AngularErrorHandler {
25
- private readonly _options : ErrorHandlerOptions ;
25
+ protected readonly _options : ErrorHandlerOptions ;
26
26
27
27
public constructor ( options ?: ErrorHandlerOptions ) {
28
28
this . _options = {
@@ -55,7 +55,7 @@ class SentryErrorHandler implements AngularErrorHandler {
55
55
/**
56
56
* Used to pull a desired value that will be used to capture an event out of the raw value captured by ErrorHandler.
57
57
*/
58
- private _extractError ( error : unknown ) : unknown {
58
+ protected _extractError ( error : unknown ) : unknown {
59
59
// Allow custom overrides of extracting function
60
60
if ( this . _options . extractor ) {
61
61
const defaultExtractor = this . _defaultExtractor . bind ( this ) ;
@@ -68,7 +68,7 @@ class SentryErrorHandler implements AngularErrorHandler {
68
68
/**
69
69
* Default implementation of error extraction that handles default error wrapping, HTTP responses, ErrorEvent and few other known cases.
70
70
*/
71
- private _defaultExtractor ( errorCandidate : unknown ) : unknown {
71
+ protected _defaultExtractor ( errorCandidate : unknown ) : unknown {
72
72
let error = errorCandidate ;
73
73
74
74
// Try to unwrap zone.js error.
@@ -115,4 +115,4 @@ function createErrorHandler(config?: ErrorHandlerOptions): SentryErrorHandler {
115
115
return new SentryErrorHandler ( config ) ;
116
116
}
117
117
118
- export { createErrorHandler } ;
118
+ export { createErrorHandler , SentryErrorHandler } ;
0 commit comments