private String getOrganizedTrace(Throwable t) { StringBuffer sbTrace = new StringBuffer("at:\n"); for(int d = 0; d < MAX_TRACE_DEPTH; d++) { if(d > 0) { if ( t.getCause( ) != null )
private String getOrganizedTrace( Throwable t ) { StringBuffer sbTrace = new StringBuffer( "at:\n" ); for ( int d = 0; d < MAX_TRACE_DEPTH; d++ ) { if ( d > 0 ) { while ( t.getCause( ) != null )
    private String getOrganizedTrace(Throwable t)    {        StringBuffer sbTrace = new StringBuffer("at:\n");    //$NON-NLS-1$        for(int d = 0; d < MAX_TRACE_DEPTH; d++)        {            if(d > 0)            {            	if ( t.getCause( ) != null )				{					t = t.getCause( );				}                sbTrace.append("\n\nCaused By:"+t.getLocalizedMessage()+"\n");            }            StackTraceElement[] se = t.getStackTrace();            for(int i = 0; i < se.length; i++)            {                if(i > 0)                {                    sbTrace.append("\n");   //$NON-NLS-1$                }                sbTrace.append(se[i].toString());            }        }        return sbTrace.toString();    }