Class UnknownSqlException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.snowflake.connectors.common.exception.ConnectorException
-
- com.snowflake.connectors.util.sql.UnknownSqlException
-
- All Implemented Interfaces:
Serializable
public class UnknownSqlException extends ConnectorException
Exception thrown when an unknown SQL error has occurred.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringRESPONSE_CODEError code of the exception, used in the underlyingresponse.
-
Constructor Summary
Constructors Constructor Description UnknownSqlException()Creates a newUnknownSqlExceptionwith a default message ofAn unknown SQL error occurred.UnknownSqlException(String procedure, String message)Creates a newUnknownSqlExceptionwith a provided message and called procedure information.
-
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
-
UnknownSqlException
public UnknownSqlException()
Creates a newUnknownSqlExceptionwith a default message ofAn unknown SQL error occurred.
-
UnknownSqlException
public UnknownSqlException(String procedure, String message)
Creates a newUnknownSqlExceptionwith a provided message and called procedure information.- Parameters:
procedure- name of the procedure called when the exception occurredmessage- exception message
-
-