* src/java/org/apache/commons/lang/exception/ExceptionUtils.java

getCause(Throwable), getCause(Throwable, String[]): Added @since tags.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Rall 2003-11-04 00:04:40 +00:00
parent 41ff6f096e
commit f9bb3689e9
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,7 @@ import org.apache.commons.lang.SystemUtils;
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @author Pete Gieser
* @since 1.0
* @version $Id: ExceptionUtils.java,v 1.35 2003/09/07 14:32:35 psteitz Exp $
* @version $Id: ExceptionUtils.java,v 1.36 2003/11/04 00:04:40 dlr Exp $
*/
public class ExceptionUtils {
@ -173,6 +173,7 @@ public class ExceptionUtils {
* @param throwable the throwable to introspect for a cause, may be null
* @return the cause of the <code>Throwable</code>,
* <code>null</code> if none found or null throwable input
* @since 1.0
*/
public static Throwable getCause(Throwable throwable) {
return getCause(throwable, CAUSE_METHOD_NAMES);
@ -194,6 +195,7 @@ public class ExceptionUtils {
* @param methodNames the method names, null treated as default set
* @return the cause of the <code>Throwable</code>,
* <code>null</code> if none found or null throwable input
* @since 1.0
*/
public static Throwable getCause(Throwable throwable, String[] methodNames) {
if (throwable == null) {