commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc gassmann <...@netcetera.ch>
Subject [lang] extending of ExceptionUtils
Date Thu, 22 Dec 2005 14:09:13 GMT

Our goal was to get the last throwable of a specific class in the stack
trace. So we extended ExceptionUtils with some methods:

public static int lastIndexOfThrowable(Throwable throwable, Class clazz)
public static int lastIndexOfThrowable(Throwable throwable, Class clazz,
int fromIndex)
public static int lastIndexOfType(Throwable throwable, Class type)
public static int lastIndexOfType(Throwable throwable, Class type, int
fromIndex)

The patches are attached, the testcases as well.
We would be pleased, if you can use it.


have a nice day :-)
marc



-- 

Marc Gassmann | marc.gassmann@netcetera.ch
phone +41 (0)44 247 79 84 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Z├╝rich | Switzerland | http://netcetera.ch



Mime
View raw message