docs: function (raiseException, countAsAssert) {
                  if (countAsAssert !== false) {
                      this._assertCount++;
                      this._totalAssertCount++;
                  }
                  var logAppender = this._logAppender;
  
                  if (!logAppender.isEmpty()) {
                      var logs = logAppender.getLogs(), errFound = false, msg = '';
  
                      for (var i = 0; i < logs.length; i++) {
                          var logItem = logs[i];
                          if (logItem.level == "error") {
                              errFound = true;
                              msg = "Uncaught error detected: [" + logItem.className + "] " + logItem.msg;
  
                              var err = logItem.objOrErr;
                              if (err) {
                                  if (err.logDetails) {
                                      err.logDetails();
                                  }
                                  msg += "\n";
                                  msg += (err.name && err.message) ? (err.name + ": " + err.message) : err;
  
                                  if (console && ariaUtilsType.isFunction(console.error)) {
                                      console.error(this.$classpath + "." + this._currentTestName + ": " + msg + "\n"
                                              + err.stack);
                                  }
                              }
  
                              this.raiseFailure(msg);
                          }
                      }
  
                      logAppender.empty();
  
                      if (errFound && raiseException !== false) {
                          throw {
                              name : this.ASSERT_FAILURE,
                              message : msg
                              // last message is used in this case
                          };
                      }
                  }
              }