Class InMemoryConnectorErrorHelper

  • All Implemented Interfaces:
    com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper

    public class InMemoryConnectorErrorHelper
    extends Object
    implements com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper
    In memory implementation of ConnectorErrorHelper.
    • Constructor Detail

      • InMemoryConnectorErrorHelper

        public InMemoryConnectorErrorHelper()
    • Method Detail

      • withExceptionLogging

        public <T> T withExceptionLogging​(Supplier<T> action)
                                   throws com.snowflake.connectors.common.exception.ConnectorException
        Specified by:
        withExceptionLogging in interface com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper
        Throws:
        com.snowflake.connectors.common.exception.ConnectorException
      • withExceptionWrapping

        public com.snowflake.connectors.common.response.ConnectorResponse withExceptionWrapping​(Supplier<com.snowflake.connectors.common.response.ConnectorResponse> action)
        Specified by:
        withExceptionWrapping in interface com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper