Package com.mscharhag.et
Interface TargetExceptionResolver
- All Known Implementing Classes:
ReflectiveExceptionResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
TargetExceptionResolver is responsible for resolving a source exception to a target exception.-
Method Summary
Modifier and TypeMethodDescriptiondefault RuntimeExceptiongetTargetException(Exception source) getTargetException(String message, Exception source) Translates the passed exception to aRuntimeException.
-
Method Details
-
getTargetException
Translates the passed exception to aRuntimeException. If, for some reason, no target exception can be returned, aTranslationExceptionshould be thrown.- Parameters:
message-source-- Returns:
- a
RuntimeException, nevernull
-
getTargetException
-