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