search

goog.debug.ErrorReporter

Provided By
Extends
All Implemented Interfaces

Constructs an error reporter. Internal Use Only. To install an error reporter see the #install method below.

new ErrorReporter( handlerUrl, opt_contextProvider, opt_noAutoProtect )

Parameters
handlerUrlstring

The URL to which all errors will be reported.

opt_contextProviderfunction(Error, Object<string, string>): ?=

When a report is to be sent to the server, this method will be called, and given an opportunity to modify the context object before submission to the server.

opt_noAutoProtectboolean=

Whether to automatically add handlers for onerror and to protect entry points. If apps have other error reporting facilities, it may make sense for them to set these up themselves and use the ErrorReporter just for transmission of reports.

Instance Methods

Instance Properties

Static Functions

Compiler Constants

Classes