Interface ExceptionTranslator

All Known Implementing Classes:
DefaultExceptionTranslator

public interface ExceptionTranslator
  • Method Details

    • translate

      void translate(TryBlock tryBlock)
    • withTranslation

      @Deprecated default void withTranslation(TryBlock tryBlock)
      Deprecated.
    • returns

      <T> T returns(ReturningTryBlock<T> invokable)
    • withReturningTranslation

      @Deprecated default <T> T withReturningTranslation(ReturningTryBlock<T> invokable)
      Deprecated.
    • swallow

      void swallow(TryBlock tryBlock)

      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()