Class UnknownConnectorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.snowflake.connectors.common.exception.ConnectorException
-
- com.snowflake.connectors.common.exception.UnknownConnectorException
-
- All Implemented Interfaces:
Serializable
public class UnknownConnectorException extends ConnectorException
Exception thrown when an unknown error has occurred.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESPONSE_CODE
Error code of the exception, used in the underlyingresponse
.
-
Constructor Summary
Constructors Constructor Description UnknownConnectorException()
Creates a newUnknownConnectorException
with a default message ofAn unknown error occurred
.UnknownConnectorException(Exception exception)
Creates a newUnknownConnectorException
, with the provided exception as message source and exception cause.UnknownConnectorException(String message)
Creates a newUnknownConnectorException
with a provided message.
-
Method Summary
-
Methods inherited from class com.snowflake.connectors.common.exception.ConnectorException
getContext, getResponse
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
RESPONSE_CODE
public static final String RESPONSE_CODE
Error code of the exception, used in the underlyingresponse
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnknownConnectorException
public UnknownConnectorException()
Creates a newUnknownConnectorException
with a default message ofAn unknown error occurred
.
-
UnknownConnectorException
public UnknownConnectorException(String message)
Creates a newUnknownConnectorException
with a provided message.- Parameters:
message
- exception message
-
UnknownConnectorException
public UnknownConnectorException(Exception exception)
Creates a newUnknownConnectorException
, with the provided exception as message source and exception cause.- Parameters:
exception
- cause exception
-
-