Example #1
0
  public static void logAttachDetachException(AttachDetachException ade) {
    if (ade == null) return;

    for (Throwable t : ade.getCauses()) {
      if (t instanceof AttachDetachException) logAttachDetachException((AttachDetachException) t);
      else {
        Debug.devlog(t.toString());
        for (StackTraceElement ste : t.getStackTrace()) Debug.devlog(ste.toString());
      }
    }
  }