Package com.mscharhag.et
Interface ExceptionTranslator
- All Known Implementing Classes:
DefaultExceptionTranslator
public interface ExceptionTranslator
-
Method Summary
Modifier and TypeMethodDescription<T> Treturns(ReturningTryBlock<T> invokable) voidThis swallows any exceptions.voiddefault <T> TwithReturningTranslation(ReturningTryBlock<T> invokable) Deprecated.default voidwithTranslation(TryBlock tryBlock) Deprecated.
-
Method Details
-
translate
-
withTranslation
Deprecated. -
returns
-
withReturningTranslation
Deprecated. -
swallow
This swallows any exceptions. It should only be used with specific circumstances, like closing an open resource where you dont care if there's an error.
Note that you pretty much always care if there's an error.
- Parameters:
tryBlock-
-
newConfiguration
ExceptionTranslatorConfigurer newConfiguration()
-