Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import * as rg4js from 'raygun4js';
import { ErrorHandler } from '@angular/core';
const VERSION_NUMBER = '';
rg4js('apiKey', 'YourApiKeyGoesHere');
rg4js('setVersion', VERSION_NUMBER);
rg4js('enableCrashReporting', true);
export class RaygunErrorHandler implements ErrorHandler {
handleError(e: any) {
rg4js('send', {
error: e,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment