Esempio n. 1
0
  /**
   * @param throwable Throwable
   * @return the root cause of this error
   */
  private Throwable unwind(Throwable throwable) {

    Throwable t = null;
    if (throwable != null) {
      t = unwind(throwable.getCause());
      if (t == null) {
        t = throwable;
      }
    }
    return t;
  }