connectionUtils/src/main/java/com/ge/research/semtk/resultSet/GeneralResultSet.java
public void addRationaleMessage(String source, Exception e) {
		// build a message
		StackTraceElement [] trace = e.getStackTrace();
		String msg = "";
		
		// if stack trace is small, use e.toString().  Otherwise get first few lines.
		if (trace.length < 2) {
			msg = e.toString();
		} else {
			msg = e.getMessage() + "\n" + trace[0].toString() + "\n" + trace[1].toString() + "\n" + trace[2].toString() + "\n...";
		}
		
		this.rationale.add(String.format("%s threw %s %s", source, e.getClass().getName(), msg));
	}
// for EXCEPTIONS with generic source (e.g. "Object.method()" )
for EXCEPTIONS with generic source " )
for EXCEPTIONS with generic source " )
public void addRationaleMessage(String source, Exception e) {
		StackTraceElement [] trace = e.getStackTrace();
		String msg = "";
		if (trace.length < 2) {
			msg = e.toString();
		} else {
			msg = e.getMessage() + "\n" + trace[0].toString() + "\n" + trace[1].toString() + "\n" + trace[2].toString() + "\n...";
		}
		this.rationale.add(String.format("%s threw %s %s", source, e.getClass().getName(), msg));
	}
public void addRationaleMessage ( String source , Exception e ) { StackTraceElement [ ] trace = e . getStackTrace ( ) ; String msg = "" ; if ( trace . length < 2 ) { msg = e . toString ( ) ; } else { msg = e . getMessage ( ) + "\n" + trace [ 0 ] . toString ( ) + "\n" + trace [ 1 ] . toString ( ) + "\n" + trace [ 2 ] . toString ( ) + "\n..." ; } this . rationale . add ( String . format ( "%s threw %s %s" , source , e . getClass ( ) . getName ( ) , msg ) ) ; }
for EXCEPTIONS with generic source (e.g.
for EXCEPTIONS with generic source ( e . g .
// build a message // if stack trace is small, use e.toString().  Otherwise get first few lines.