Class CombinedTypeSolver.ExceptionHandlers
java.lang.Object
com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver.ExceptionHandlers
- Enclosing class:
- CombinedTypeSolver
Provides some convenience exception handler implementations
-
Field Summary
Modifier and TypeFieldDescriptionIgnores all exceptionsDoesn't ignore any exceptions (default)Ignores any exception that isassignable from
UnsolvedSymbolException
.Ignores any exception that isassignable from
eitherUnsolvedSymbolException
orUnsupportedOperationException
.Ignores any exception that isassignable from
UnsupportedOperationException
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTypeBasedBlacklist(Class<? extends Exception>... blacklist)
getTypeBasedWhitelist(Class<? extends Exception>... whitelist)
-
Field Details
-
IGNORE_NONE
Doesn't ignore any exceptions (default) -
IGNORE_ALL
Ignores all exceptions -
IGNORE_UNSUPPORTED_OPERATION
Ignores any exception that isassignable from
UnsupportedOperationException
.- See Also:
getTypeBasedWhitelist(Class...)
-
IGNORE_UNSOLVED_SYMBOL
Ignores any exception that isassignable from
UnsolvedSymbolException
.- See Also:
getTypeBasedWhitelist(Class...)
-
IGNORE_UNSUPPORTED_AND_UNSOLVED
Ignores any exception that isassignable from
eitherUnsolvedSymbolException
orUnsupportedOperationException
.
-
-
Constructor Details
-
ExceptionHandlers
public ExceptionHandlers()
-
-
Method Details
-
getTypeBasedBlacklist
- Returns:
- A filter that ignores an exception if none of the listed classes are
assignable from
the thrown exception class. - See Also:
CombinedTypeSolver.setExceptionHandler(Predicate)
,getTypeBasedWhitelist(Class...)
-
getTypeBasedWhitelist
- Returns:
- A filter that ignores an exception if any of the listed classes are
assignable from
the thrown exception class. - See Also:
CombinedTypeSolver.setExceptionHandler(Predicate)
,getTypeBasedBlacklist(Class...)
-