Package com.clickhouse.jdbc
Class SqlExceptionUtils
- java.lang.Object
-
- com.clickhouse.jdbc.SqlExceptionUtils
-
public final class SqlExceptionUtils extends Object
Helper class for buildingSQLException.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSQL_STATE_CLIENT_ERRORstatic StringSQL_STATE_CONNECTION_EXCEPTIONstatic StringSQL_STATE_DATA_EXCEPTIONstatic StringSQL_STATE_FEATURE_NOT_SUPPORTEDstatic StringSQL_STATE_INVALID_SCHEMAstatic StringSQL_STATE_INVALID_TX_STATEstatic StringSQL_STATE_NO_DATAstatic StringSQL_STATE_SQL_ERROR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLExceptionclientError(String message)static SQLExceptionclientError(String message, Throwable e)static SQLExceptionclientError(Throwable e)static SQLExceptionforCancellation(Exception e)static SQLExceptionhandle(ClickHouseException e)static SQLExceptionhandle(Throwable e)static SQLExceptionunknownError()static SQLFeatureNotSupportedExceptionunsupportedError(String message)
-
-
-
Field Detail
-
SQL_STATE_CLIENT_ERROR
public static final String SQL_STATE_CLIENT_ERROR
- See Also:
- Constant Field Values
-
SQL_STATE_CONNECTION_EXCEPTION
public static final String SQL_STATE_CONNECTION_EXCEPTION
- See Also:
- Constant Field Values
-
SQL_STATE_SQL_ERROR
public static final String SQL_STATE_SQL_ERROR
- See Also:
- Constant Field Values
-
SQL_STATE_NO_DATA
public static final String SQL_STATE_NO_DATA
- See Also:
- Constant Field Values
-
SQL_STATE_INVALID_SCHEMA
public static final String SQL_STATE_INVALID_SCHEMA
- See Also:
- Constant Field Values
-
SQL_STATE_INVALID_TX_STATE
public static final String SQL_STATE_INVALID_TX_STATE
- See Also:
- Constant Field Values
-
SQL_STATE_DATA_EXCEPTION
public static final String SQL_STATE_DATA_EXCEPTION
- See Also:
- Constant Field Values
-
SQL_STATE_FEATURE_NOT_SUPPORTED
public static final String SQL_STATE_FEATURE_NOT_SUPPORTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
clientError
public static SQLException clientError(String message)
-
clientError
public static SQLException clientError(Throwable e)
-
clientError
public static SQLException clientError(String message, Throwable e)
-
handle
public static SQLException handle(ClickHouseException e)
-
handle
public static SQLException handle(Throwable e)
-
forCancellation
public static SQLException forCancellation(Exception e)
-
unsupportedError
public static SQLFeatureNotSupportedException unsupportedError(String message)
-
unknownError
public static SQLException unknownError()
-
-