public class InnerCause extends Object
Constructor and Description |
---|
InnerCause() |
Modifier and Type | Method and Description |
---|---|
static Throwable |
getInnerCause(Throwable t,
Class<? extends Throwable> cls)
Examines a stack trace for an instance of the specified cause nested to
any level within that stack trace.
|
static boolean |
isInnerCause(Throwable t,
Class<? extends Throwable> cls)
Examines a stack trace for an instance of the specified cause nested to
any level within that stack trace.
|
public static Throwable getInnerCause(Throwable t, Class<? extends Throwable> cls)
t
- The stack trace.cls
- The class of exception that you are looking for in the stack
trace.null
otherwise.IllegalArgumentException
- if any parameter is null.public static boolean isInnerCause(Throwable t, Class<? extends Throwable> cls)
t
- The stack trace.cls
- The class of exception that you are looking for in the stack
trace.true
iff an exception that is an instance of that
class iff one exists in the stack trace.IllegalArgumentException
- if any parameter is null.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.