alertIfException method

bool alertIfException()

Implementation

bool alertIfException() {
  if (hasException) {
    alert();
  }

  return hasException;
}