Code example for Collection

Methods: iterator

0
    _causes = (causes == null ? Collections.<Throwable>emptyList() : causes);
 
    // Let the first exception be the cause so at least something shows up in the stack 
    // trace; we can't just override printStackTrace() because OUR printStackTrace() is 
    // not invoked when this exception is the cause of another. 
    Iterator<? extends Throwable> i = _causes.iterator();
    if (i.hasNext())
    { 
      initCause(i.next());
    } 
  } 
  public MultiException(Collection<? extends Throwable> causes)
  { 
    this(null, causes);
  } 
 
  public Collection<? extends Throwable> getCauses()
  { 
    return _causes;
  } 
Experience pair programming with AI  Get Codota for Java