/** * Add an Exception's error message to the Exception. * * @param exception Exception of which <code>getMessage()</code> is called to add the message. */ public void add(Throwable exception) { add(exception.getMessage()); }
/** * Return Iterator of error msgs. * * @deprecated Use getIterator() instead. * @return Iterator of {@link java.lang.String} representations of error message. */ public Iterator list() { return getIterator(); } }
/** * Return Iterator of error msgs. * * @deprecated Use getIterator() instead. * @return Iterator of {@link java.lang.String} representations of error message. */ public Iterator list() { return getIterator(); } }
/** * Add an Exception's error message to the Exception. * * @param exception Exception of which <code>getMessage()</code> is called to add the message. */ public void add(Throwable exception) { add(exception.getMessage()); }
/** * Return error msgs as String array. */ public synchronized String[] getArray() { String[] result = new String[errors.size()]; Iterator i = getIterator(); for (int c = 0; i.hasNext(); c++) { result[c] = (String) i.next(); } return result; }
/** * Return error msgs as String array. */ public synchronized String[] getArray() { String[] result = new String[errors.size()]; Iterator i = getIterator(); for (int c = 0; i.hasNext(); c++) { result[c] = (String) i.next(); } return result; }