void (@Nullable String localizedMessage, @Nullable String stackTrace, boolean testError) { setStacktraceIfNotSet(stackTrace); myErrorMessage = localizedMessage; TestFailedState failedState = testError ? new TestErrorState(localizedMessage, stackTrace) : new TestFailedState(localizedMessage, stackTrace); updateFailedState(failedState); fireOnNewPrintable(failedState); }