/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * Returns this <code>Nestable</code> and any nested <code>Throwable</code>s * in an array of <code>Throwable</code>s, one element for each * <code>Throwable</code>. * * @return the <code>Throwable</code>s * @since 2.1 */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * Returns the <code>Throwable</code> in the chain of * <code>Throwable</code>s at the specified index, numbered from 0. * * @param index the index, numbered from 0, of the <code>Throwable</code> in * the chain of <code>Throwable</code>s * @return the <code>Throwable</code> * @throws IndexOutOfBoundsException if the <code>index</code> argument is * negative or not less than the count of <code>Throwable</code>s in the * chain * @since 2.0 */ public Throwable getThrowable(int index) { if (index == 0) { return this.nestable; } Throwable[] throwables = this.getThrowables(); return throwables[index]; }
/** * Returns the error message of this and any nested <code>Throwable</code>s in an array of Strings, one element * for each message. Any <code>Throwable</code> not containing a message is represented in the array by a null. * This has the effect of cause the length of the returned array to be equal to the result of the * {@link #getThrowableCount()} operation. * * @return the error messages * @since 2.0 */ public String[] getMessages() { Throwable[] throwables = this.getThrowables(); String[] msgs = new String[throwables.length]; for (int i = 0; i < throwables.length; i++) { msgs[i] = (Nestable.class.isInstance(throwables[i]) ? ((Nestable) throwables[i]).getMessage(0) : throwables[i].getMessage()); } return msgs; }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * Returns this <code>Nestable</code> and any nested <code>Throwable</code>s * in an array of <code>Throwable</code>s, one element for each * <code>Throwable</code>. * * @return the <code>Throwable</code>s * @since 2.1 */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * Returns this <code>Nestable</code> and any nested <code>Throwable</code>s * in an array of <code>Throwable</code>s, one element for each * <code>Throwable</code>. * * @return the <code>Throwable</code>s * @since 2.1 */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * Returns this <code>Nestable</code> and any nested <code>Throwable</code>s * in an array of <code>Throwable</code>s, one element for each * <code>Throwable</code>. * * @return the <code>Throwable</code>s * @since 2.1 */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * Returns this <code>Nestable</code> and any nested <code>Throwable</code>s * in an array of <code>Throwable</code>s, one element for each * <code>Throwable</code>. * * @return the <code>Throwable</code>s * @since 2.1 */ public Throwable[] getThrowables() { return delegate.getThrowables(); }
/** * {@inheritDoc} */ public Throwable[] getThrowables() { return delegate.getThrowables(); }