Package com.mscharhag.et
Interface TargetExceptionResolver
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TargetExceptionResolverTargetExceptionResolveris responsible for resolving a source exception to a target exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.RuntimeExceptiongetTargetException(java.lang.Exception source)java.lang.RuntimeExceptiongetTargetException(java.lang.String message, java.lang.Exception source)Translates the passed exception to aRuntimeException.
-
-
-
Method Detail
-
getTargetException
java.lang.RuntimeException getTargetException(java.lang.String message, java.lang.Exception source)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
default java.lang.RuntimeException getTargetException(java.lang.Exception source)
-
-