123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- goog.provide('goog.debug.Error');
- goog.debug.Error = function(opt_msg) {
-
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, goog.debug.Error);
- } else {
- var stack = new Error().stack;
- if (stack) {
- this.stack = stack;
- }
- }
- if (opt_msg) {
- this.message = String(opt_msg);
- }
-
- this.reportErrorToServer = true;
- };
- goog.inherits(goog.debug.Error, Error);
- goog.debug.Error.prototype.name = 'CustomError';
|