Class SetOfThrowables
java.lang.Object
io.smallrye.faulttolerance.core.util.SetOfThrowables
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SetOfThrowablesCreates a set consisting of a single throwable class.static SetOfThrowablescreate(Collection<Class<? extends Throwable>> classes) Creates a set of throwable classes that can later be inspected usingincludes(Class).boolean
-
Field Details
-
EMPTY
-
ALL
-
-
Method Details
-
create
Creates a set consisting of a single throwable class. The set can later be inspected usingincludes(Class).- Parameters:
clazz- a single throwable class to include in the set- Returns:
- a singleton set of throwable classes
-
create
Creates a set of throwable classes that can later be inspected usingincludes(Class).- Parameters:
classes- throwable classes to include in the set- Returns:
- a set of throwable classes
-
includes
- Parameters:
searchedFor- a class to check- Returns:
- whether
searchedForis a subtype of (at least) one of the types in this set. Note that subtyping is a reflexive relation, so a type is always a subtype of itself.
-