code: public static boolean hasException(List<TraceEvent> events)
     {
        for (TraceEvent te : events)
        {
           if (te.getType() == TraceEvent.EXCEPTION)
              return true;
        }
  
        return false;
     }
docs: Has an exception event
  @param events The events
  @return True if there is an exception