Class InMemoryConnectorErrorHelper
- java.lang.Object
-
- com.snowflake.connectors.common.exception.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 ofConnectorErrorHelper
.
-
-
Constructor Summary
Constructors Constructor Description InMemoryConnectorErrorHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
withExceptionLogging(Supplier<T> action)
com.snowflake.connectors.common.response.ConnectorResponse
withExceptionWrapping(Supplier<com.snowflake.connectors.common.response.ConnectorResponse> action)
-
-
-
Method Detail
-
withExceptionLogging
public <T> T withExceptionLogging(Supplier<T> action) throws com.snowflake.connectors.common.exception.ConnectorException
- Specified by:
withExceptionLogging
in interfacecom.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 interfacecom.snowflake.connectors.common.exception.helper.ConnectorErrorHelper
-
-