private void setException(String rawLog) {
    Matcher matcher = mrTaskExceptionPattern.matcher(rawLog);
    long limitOnExceptionChains = MAX_EXCEPTIONS;
    StringBuilder exceptionBuilder = new StringBuilder();
    while (matcher.find() && limitOnExceptionChains>=0) {
      exceptionBuilder.append(matcher.group());
      limitOnExceptionChains--;
    }
      this._exception = new LoggingEvent(exceptionBuilder.toString());
  }
Sets the exception of the mr task
@param rawLog Raw log of the task
app/com/linkedin/drelephant/exceptions/MRTaskLogAnalyzer.java