Package + Version
Version:
Description
My application(Angular@9) throws rxjs.Observable.error() and catch that by Sentry.captureException();.
At Sentry.io, I saw
Hub.push../node_modules/@sentry/hub/esm/hub.js.Hub.withScope
error
Non-Error exception captured with keys: ...
https://sentry.io/organizations/{myorg}/issues/1582573825/
It may be better that Sentry.captureException() could be to catch rxjs.Observable.error() simply.
Or had I mistaken for using @sentry/browser ??
code
import{Component}from"@angular/core";import{Observable}from"rxjs";
@Component({selector: "app-root",template: `<button (click)="myProcess()"></button>`})exportclassAppComponent{publicmyProcess(): void{newObservable<{message: string}>(observer=>{observer.error({message: "my failure..."});}).subscribe(result=>console.log(result));}}
@Injectable()exportclassSentryErrorHandlerimplementsErrorHandler{constructor(){}handleError(error){Sentry.captureException(error.originalError||error);}}
Package + Version
@sentry/browser@sentry/noderaven-jsraven-node(raven for node)Version:
Description
My application(Angular@9) throws
rxjs.Observable.error()and catch that bySentry.captureException();.At Sentry.io, I saw
https://sentry.io/organizations/{myorg}/issues/1582573825/
It may be better that Sentry.captureException() could be to catch
rxjs.Observable.error()simply.Or had I mistaken for using
@sentry/browser??code