code: private Exception updateErrorMsg(StringBuilder pErrors, Exception exp) {
          pErrors.append(exp.getClass()).append(": ").append(exp.getMessage()).append("\n");
          return exp;
      }
docs: Helper method for adding the exception for an appropriate error message