@@ -115,41 +115,6 @@ class SentryGlobalFilter extends BaseExceptionFilter {
115
115
Catch ( ) ( SentryGlobalFilter ) ;
116
116
export { SentryGlobalFilter } ;
117
117
118
- /**
119
- * Global filter to handle exceptions in NestJS + GraphQL applications and report them to Sentry.
120
- *
121
- * @deprecated `SentryGlobalGraphQLFilter` is deprecated. Use the `SentryGlobalFilter` instead. The `SentryGlobalFilter` is a drop-in replacement.
122
- */
123
- class SentryGlobalGraphQLFilter {
124
- private static readonly _logger = new Logger ( 'ExceptionsHandler' ) ;
125
- public readonly __SENTRY_INTERNAL__ : boolean ;
126
-
127
- public constructor ( ) {
128
- this . __SENTRY_INTERNAL__ = true ;
129
- }
130
-
131
- /**
132
- * Catches exceptions and reports them to Sentry unless they are HttpExceptions.
133
- */
134
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
135
- public catch ( exception : unknown , host : ArgumentsHost ) : void {
136
- // neither report nor log HttpExceptions
137
- if ( exception instanceof HttpException ) {
138
- throw exception ;
139
- }
140
- if ( exception instanceof Error ) {
141
- // eslint-disable-next-line deprecation/deprecation
142
- SentryGlobalGraphQLFilter . _logger . error ( exception . message , exception . stack ) ;
143
- }
144
- captureException ( exception ) ;
145
- throw exception ;
146
- }
147
- }
148
- // eslint-disable-next-line deprecation/deprecation
149
- Catch ( ) ( SentryGlobalGraphQLFilter ) ;
150
- // eslint-disable-next-line deprecation/deprecation
151
- export { SentryGlobalGraphQLFilter } ;
152
-
153
118
/**
154
119
* Global filter to handle exceptions and report them to Sentry.
155
120
*
0 commit comments