Function Summary | |
catchErrors(function ((Object|null)): ? logFunc, boolean= opt_cancel, ?Object= opt_target) Catches onerror events fired by windows and similar objects. | |
deepExpose(<Any Type> obj, boolean= opt_showFn) ⇒ string Creates a string representing a given primitive or object, and for an object, all its properties and nested objects. WARNING: If an object is given, it and all its nested objects will be modified. To detect reference cycles, this method identifies objects using goog.getUid() which mutates the object. | |
enhanceError((Error|null|string) err, string= opt_message) ⇒ ?Error Converts an object to an Error if it's a String, adds a stacktrace if there isn't one, and optionally adds an extra message. | |
expose((Object|null|undefined) obj, boolean= opt_showFn) ⇒ string Creates a string representing an object and all its properties. | |
exposeArray(?Array arr) ⇒ string Recursively outputs a nested array as a string. | |
exposeException(?Object err, ?Function= opt_fn) ⇒ string Exposes an exception that has been caught by a try...catch and outputs the error with a stack trace. | |
getFunctionName(?Function fn) ⇒ string Gets a function name | |
getStacktrace(?Function= opt_fn) ⇒ string Gets the current stack trace, either starting from the caller or starting from a specified function that's currently on the call stack. | |
getStacktraceHelper_(?Function fn, ?Array visited) ⇒ string Private helper for getStacktrace(). | |
getStacktraceSimple(number= opt_depth) ⇒ string Gets the current stack trace. Simple and iterative - doesn't worry about catching circular references or getting the args. | |
makeWhitespaceVisible(string string) ⇒ string Makes whitespace visible by replacing it with printable characters. This is useful in finding diffrences between the expected and the actual output strings of a testcase. | |
normalizeErrorObject(?Object err) ⇒ ?Object Normalizes the error/exception object between browsers. | |
setFunctionResolver(function ((Function|null)): string resolver) Set a custom function name resolver. |