The goog.testing.TestCase.Error Class

goog.testing.TestCase.Error(source, message, opt_stack)

A class representing an error thrown by the test

source {string}
The name of the test which threw the error.
message {string}
The error message.
opt_stack {string=}
A string showing the execution stack.

.message {string}

Reference to the test function.

.source {string}

The name of the test which threw the error.

.stack {?string}

Scope that the test function should be called in.

.toString()

Returns a string representing the error object.

returns {string}
A string representation of the error.