Class Throwables
- java.lang.Object
 - 
- org.forgerock.openig.tools.notifications.ws.Throwables
 
 
- 
public final class Throwables extends Object
Throwable utilities class. 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Throwable>
Optional<T>find(Throwable throwable, Class<T> type)Return the top-most Throwable in the exception's chain that matches the given type. 
 - 
 
- 
- 
Method Detail
- 
find
public static <T extends Throwable> Optional<T> find(Throwable throwable, Class<T> type)
Return the top-most Throwable in the exception's chain that matches the given type.- Type Parameters:
 T- throwable type- Parameters:
 throwable- starting point of the searchtype- looked up throwable type- Returns:
 - the Optional throwable instance
 
 
 - 
 
 -