Package net.snowflake.client.core
Class SFException
- java.lang.Object
-
- java.lang.Throwable
-
- net.snowflake.client.core.SFException
-
- All Implemented Interfaces:
Serializable
public class SFException extends Throwable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SFException(String queryId, Throwable cause, ErrorCode errorCode, Object... params)
SFException(String queryID, ErrorCode errorCode, Object... params)
Deprecated.SFException(Throwable cause, ErrorCode errorCode, Object... params)
Deprecated.SFException(ErrorCode errorCode, Object... params)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
Get the error causeObject[]
getParams()
Get additional parametersString
getQueryId()
Get the query IDString
getSqlState()
Get the SQL stateint
getVendorCode()
Get the vendor codeString
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
SFException
@Deprecated public SFException(ErrorCode errorCode, Object... params)
Deprecated.- Parameters:
errorCode
- the error codeparams
- additional params
-
SFException
@Deprecated public SFException(String queryID, ErrorCode errorCode, Object... params)
Deprecated.- Parameters:
queryID
- the query iderrorCode
- the error codeparams
- additional params
-
SFException
@Deprecated public SFException(Throwable cause, ErrorCode errorCode, Object... params)
Deprecated.- Parameters:
cause
- throwableerrorCode
- error codeparams
- additional params
-
-
Method Detail
-
getCause
public Throwable getCause()
Get the error cause
-
getQueryId
public String getQueryId()
Get the query ID- Returns:
- query ID string
-
getSqlState
public String getSqlState()
Get the SQL state- Returns:
- SQL state string
-
getVendorCode
public int getVendorCode()
Get the vendor code- Returns:
- vendor code
-
getParams
public Object[] getParams()
Get additional parameters- Returns:
- parameter array
-
-