SwallowedExceptionListener (Apache Tomcat 8.5.57 API Documentation)

org.apache.tomcat.dbcp.pool2

## Interface SwallowedExceptionListener

- All Known Implementing Classes:
    SwallowedExceptionLogger

      public interface SwallowedExceptionListener

  Pools that unavoidably swallow exceptions may be configured with an instance of this listener so the user may receive notification of when this happens. The listener should not throw an exception when called but pools calling listeners should protect themselves against exceptions anyway.
  Since:
    2.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onSwallowException(Exception e)` This method is called every time the implementation unavoidably swallows an exception.

- - ### Method Detail

    - #### onSwallowException

          void onSwallowException(Exception e)

      This method is called every time the implementation unavoidably swallows an exception.
      Parameters:
        `e` - The exception that was swallowed

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.