errorreporter.js
No description.

File Location

/goog/debug/errorreporter.js

Classes

goog.debug.ErrorReporter
Constructs an error reporter. Internal Use Only. To install an error reporter see the method below.
goog.debug.ErrorReporter.ExceptionEvent
Event broadcast when an exception is logged.

Public Protected Private

Global Functions

goog.debug.ErrorReporter.defaultXhrSender(urimethodcontentopt_headers)
Default implementation of XHR sender interface.
Arguments:
uri : string
URI to make request to.
method : string
Send method.
content : string
Post data.
opt_headers : Object | goog.structs.Map=
Map of headers to add to the request.
code »
goog.debug.ErrorReporter.install(loggingUrlopt_contextProvideropt_noAutoProtect) !goog.debug.ErrorReporter
Installs an error reporter to catch all JavaScript errors raised.
Arguments:
loggingUrl : string
The URL to which the errors caught will be reported.
opt_contextProvider : function(!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_noAutoProtect : boolean=
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.
Returns: !goog.debug.ErrorReporter  The error reporter.
code »

Directory debug

File Reference