public final class ErrorConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALWAYS_AUTOCOMMIT
Error message used in any SQL exception thrown because the called method requires a non-committed transaction
(but transactions are not currently implemented in Cassandra, so we consider we are always in auto-commit mode).
|
static String |
ARRAY_WAS_FREED
Error message used in any SQL exception thrown when trying to access to an
Array object previously
freed. |
static String |
BAD_AUTO_GEN
Error message used in any SQL exception thrown when the expected key auto-generation parameter used in a
Statement is invalid. |
static String |
BAD_CONCURRENCY_RS
Error message used in any SQL exception thrown when the expected result set concurrency for a
Statement is invalid. |
static String |
BAD_FETCH_DIR
|
static String |
BAD_FETCH_SIZE
|
static String |
BAD_HOLD_RS
Error message used in any SQL exception thrown when the expected result set holdability for a
Statement is invalid. |
static String |
BAD_KEEP_RS
Error message used in any SQL exception thrown when the parameter passed to the method
Statement.getMoreResults(int) is invalid. |
static String |
BAD_KEYSPACE
Error message used in any SQL exception thrown when the specified keyspace name is invalid.
|
static String |
BAD_TIMEOUT
Error message used in any SQL exception thrown because the provided timeout is invalid (less than 0).
|
static String |
BAD_TYPE_RS
Error message used in any SQL exception thrown when the expected type of result set for a
Statement is invalid. |
static String |
BATCH_STATEMENT_FAILURE_MSG
Template used to report a statement failure or attempting to return a result set in the method
Statement.executeBatch(). |
static String |
BATCH_UPDATE_FAILED
Error message used in any batch update exception thrown when at least one statement fails or attempts to return
a result set in the method
Statement.executeBatch(). |
static String |
CONNECTION_CREATION_FAILED
Error message used in any SQL exception thrown when the creation of the connection to the database fails for
any reason.
|
static String |
FORWARD_ONLY
Error message used in any SQL exception thrown because the
ResultSet type is set to
ResultSet.TYPE_FORWARD_ONLY (but cursors are currently not implemented in Cassandra). |
static String |
HOST_IN_URL
Error message used in any SQL exception thrown when the JDBC URL does not specify any host name.
|
static String |
HOST_REQUIRED
Error message used in any SQL exception thrown when a connection cannot be established due to a missing host
name.
|
static String |
ILLEGAL_FETCH_DIRECTION_FOR_FORWARD_ONLY
Error message used in any SQL exception thrown when the fetch direction specified on a ResultSet is not
supported for the type
TYPE_FORWARD_ONLY. |
static String |
INVALID_CATALOG_NAME
Error message used in any SQL exception thrown when retrieving metadata related to a catalog and the given one
is not
null or does not match the one of the current connection. |
static String |
INVALID_CONTACT_POINT
Error message used in any SQL exception thrown when the contact points in the JDBC URL cannot be parsed.
|
static String |
INVALID_FETCH_SIZE_PARAMETER
Error message used when the fetch size parameter is invalid and cannot be parsed.
|
static String |
INVALID_PROFILE_NAME
Error message used when the given execution profile does not exist and cannot be applied.
|
static String |
MALFORMED_URL
Error message used in any SQL exception thrown when the method
ResultSet.getURL(int) or
ResultSet.getURL(String) is invoked on a column containing an invalid URL. |
static String |
MUST_BE_POSITIVE
Error message used in any SQL exception thrown when the specified column index in a
ResultSet
is not strictly positive or greater than the number of columns in the result set. |
static String |
MUST_BE_POSITIVE_BINDING_INDEX
Error message used in any SQL exception thrown when the specified index for a variable binding in a
PreparedStatement is not strictly positive. |
static String |
NO_GEN_KEYS
Error message used in any SQL exception thrown because the called method requires auto-generated keys (currently
not implemented in Cassandra).
|
static String |
NO_INTERFACE
Error message used in any SQL exception thrown when the method
unwrap(Class) is called with a class
not matching the expected interface. |
static String |
NO_MULTIPLE
Error message used in any SQL exception thrown because the called method requires keeping multiple open result
sets (currently not implemented in Cassandra).
|
static String |
NO_RESULT_SET
Error message used in any SQL exception thrown because a
null result set has been returned by the
Java Driver for Apache Cassandra® when a query is executed. |
static String |
NO_TRANSACTIONS
Error message used in any SQL exception thrown because the called method requires transactions (currently not
implemented in Cassandra).
|
static String |
NOT_SUPPORTED
Error message used in any SQL exception thrown because the called method requires a feature not currently
supported by Cassandra.
|
static String |
OUT_OF_BOUNDS_BINDING_INDEX
Error message used in any SQL exception thrown when the specified index for a variable binding in a
PreparedStatement is greater than the number of binding variable markers in the CQL query. |
static String |
PROPERTIES_PARSING_FROM_URL_FAILED
Error message used in any SQL exception thrown when trying to extract properties from a JDBC URL.
|
static String |
SECURECONENCTBUNDLE_REQUIRED
Error message used in any SQL exception thrown when the required parameter
secureconnectbundle is
missing in the JDBC URL. |
static String |
SSL_CONFIG_FAILED
Error message used in any SQL exception thrown when the SSL configuration for the connection fails.
|
static String |
TOO_MANY_QUERIES
Error message used in any SQL exception thrown when the number of CQL queries included in a single batch of
statements is greater than the allowed limit ( for a prepared batch
statement or 1.1
* for a split single statement). |
static String |
UNABLE_TO_POPULATE_METADATA_ROW
Error message used in any runtime exception thrown when populating a
MetadataRow failed due to a mismatch
between the number of provided values and the number of columns in the row. |
static String |
UNABLE_TO_READ_VALUE
Error message used in any SQL exception thrown when the conversion to a specific type in a getter method of
CassandraResultSet failed. |
static String |
UNABLE_TO_RETRIEVE_METADATA
Error message used in any SQL exception thrown when it is not possible to retrieve some metadata of any
ResultSet. |
static String |
UNSUPPORTED_CONVERSION_TO_JSON
Error message used in any SQL exception thrown when the conversion to JSON for the specified object in the method
CassandraPreparedStatement.setJson(int, Object) is not supported. |
static String |
UNSUPPORTED_JDBC_TYPE
Error message used in any SQL exception thrown when the target JDBC type specified in the method
CassandraPreparedStatement.setObject(int, Object, int) and its variants is not supported. |
static String |
UNSUPPORTED_JSON_TYPE_CONVERSION
Error message used in any SQL exception thrown when the conversion to the specified type in the methods
CassandraResultSet.getObjectFromJson(int, Class),
CassandraResultSet.getObjectFromJson(String, Class) and
CassandraResultSet.getObjectFromJson(Class) is not supported. |
static String |
UNSUPPORTED_PARAMETER_TYPE
Error message used in any SQL exception thrown when the conversion of the specified object in the method
CassandraPreparedStatement.setObject(int, Object, int) and its variants is not supported. |
static String |
UNSUPPORTED_TYPE_CONVERSION
Error message used in any SQL exception thrown when the conversion to the specified type in the methods
CassandraResultSet.getObject(int, Class) and CassandraResultSet.getObject(String, Class) is not
supported. |
static String |
URI_IS_SIMPLE
Error message used in any SQL exception thrown when the provided JDBC URL contains not allowed user information
(see
URI.getUserInfo()). |
static String |
VALID_LABELS
Error message used in any exception thrown when the specified column name in a
ResultSet or a row
definition is invalid. |
static String |
VECTOR_ELEMENTS_NOT_NUMBERS
Error message used in any SQL exception thrown when the method
CassandraResultSet.getVector(int) or
CassandraResultSet.getVector(String) is invoked on a column containing an invalid CQL vector. |
static String |
WAS_CLOSED_CONN
Error message used in any SQL exception thrown when a method is called on a closed
Connection. |
static String |
WAS_CLOSED_RS
Error message used in any SQL exception thrown when a method is called on a closed
ResultSet. |
static String |
WAS_CLOSED_STMT
Error message used in any SQL exception thrown when a method is called on a closed
Statement. |
public static final String WAS_CLOSED_CONN
Connection.public static final String WAS_CLOSED_STMT
Statement.public static final String WAS_CLOSED_RS
ResultSet.public static final String NO_INTERFACE
unwrap(Class) is called with a class
not matching the expected interface. This message is a template expecting the name of the class parameter as
placeholder (example: String.format(NO_INTERFACE, iface.getSimpleName())).public static final String NO_TRANSACTIONS
public static final String ALWAYS_AUTOCOMMIT
public static final String BAD_TIMEOUT
public static final String NOT_SUPPORTED
public static final String NO_GEN_KEYS
public static final String NO_MULTIPLE
public static final String NO_RESULT_SET
null result set has been returned by the
Java Driver for Apache Cassandra® when a query is executed.public static final String BAD_KEEP_RS
Statement.getMoreResults(int) is invalid. This message is a template expecting the value of the
invalid parameter as placeholder (example: String.format(BAD_KEEP_RS, 9)).public static final String BAD_TYPE_RS
Statement is invalid. This message is a template expecting the value of the
invalid type of result set as placeholder (example: String.format(BAD_TYPE_RS, 1099)).public static final String BAD_CONCURRENCY_RS
Statement is invalid. This message is a template expecting the value of the
invalid result set concurrency value as placeholder (example: String.format(BAD_CONCURRENCY_RS, 1099)).public static final String BAD_HOLD_RS
Statement is invalid. This message is a template expecting the value of the
invalid result set holdability value as placeholder (example: String.format(BAD_HOLD_RS, 9)).public static final String BAD_FETCH_DIR
Statement or a ResultSet is invalid. This message is a template expecting the
value of the invalid fetching direction value as placeholder (example:
String.format(BAD_FETCH_DIR, 1099)).public static final String BAD_AUTO_GEN
Statement is invalid. Note that auto-generated keys are currently not implemented in Cassandra.
This message is a template expecting the value of the invalid parameter as placeholder (example:
String.format(BAD_AUTO_GEN, 9)).public static final String BAD_FETCH_SIZE
Statement or a ResultSet is negative. This message is a template expecting the
value of the invalid fetch size value as placeholder (example: String.format(BAD_FETCH_SIZE, -10)).public static final String INVALID_FETCH_SIZE_PARAMETER
String.format(INVALID_FETCH_SIZE_PARAMETER, "invalid_size", 5000)).public static final String MUST_BE_POSITIVE
ResultSet
is not strictly positive or greater than the number of columns in the result set. This message is a template
expecting the value of the invalid index value as placeholder (example:
String.format(MUST_BE_POSITIVE, 0)).public static final String OUT_OF_BOUNDS_BINDING_INDEX
PreparedStatement is greater than the number of binding variable markers in the CQL query. This message
is a template expecting the value of the invalid index and the number of markers as placeholders (example:
String.format(OUT_OF_BOUNDS_BINDING_INDEX, 5, 3)).public static final String MUST_BE_POSITIVE_BINDING_INDEX
PreparedStatement is not strictly positive. This message is a template expecting the value of the
invalid index value as placeholder (example: String.format(MUST_BE_POSITIVE_BINDING_INDEX, 0)).public static final String VALID_LABELS
ResultSet or a row
definition is invalid. This message is a template expecting the value of the invalid column name as placeholder
(example: String.format(VALID_LABELS, "invalid_column")).public static final String HOST_IN_URL
public static final String INVALID_CONTACT_POINT
String.format(INVALID_CONTACT_POINT, "invalid:host")).public static final String HOST_REQUIRED
public static final String BAD_KEYSPACE
String.format(BAD_KEYSPACE, "invalid_key$pace")).public static final String URI_IS_SIMPLE
URI.getUserInfo()).public static final String SECURECONENCTBUNDLE_REQUIRED
secureconnectbundle is
missing in the JDBC URL.public static final String FORWARD_ONLY
ResultSet type is set to
ResultSet.TYPE_FORWARD_ONLY (but cursors are currently not implemented in Cassandra).public static final String MALFORMED_URL
ResultSet.getURL(int) or
ResultSet.getURL(String) is invoked on a column containing an invalid URL. This message is a template
expecting the invalid value as placeholder (example: String.format(MALFORMED_URL, "not_a_valid_url")).public static final String SSL_CONFIG_FAILED
String.format(SSL_CONFIG_FAILED, "Invalid certificate")).public static final String VECTOR_ELEMENTS_NOT_NUMBERS
CassandraResultSet.getVector(int) or
CassandraResultSet.getVector(String) is invoked on a column containing an invalid CQL vector.public static final String UNSUPPORTED_JDBC_TYPE
CassandraPreparedStatement.setObject(int, Object, int) and its variants is not supported.public static final String UNSUPPORTED_PARAMETER_TYPE
CassandraPreparedStatement.setObject(int, Object, int) and its variants is not supported.public static final String UNSUPPORTED_TYPE_CONVERSION
CassandraResultSet.getObject(int, Class) and CassandraResultSet.getObject(String, Class) is not
supported.public static final String UNABLE_TO_READ_VALUE
CassandraResultSet failed.public static final String UNSUPPORTED_JSON_TYPE_CONVERSION
CassandraResultSet.getObjectFromJson(int, Class),
CassandraResultSet.getObjectFromJson(String, Class) and
CassandraResultSet.getObjectFromJson(Class) is not supported.public static final String UNSUPPORTED_CONVERSION_TO_JSON
CassandraPreparedStatement.setJson(int, Object) is not supported.public static final String UNABLE_TO_RETRIEVE_METADATA
ResultSet.public static final String UNABLE_TO_POPULATE_METADATA_ROW
MetadataRow failed due to a mismatch
between the number of provided values and the number of columns in the row.public static final String TOO_MANY_QUERIES
* for a split single statement).
This message is a template expecting the number of CQL queries to execute as placeholder (example:
String.format(TOO_MANY_QUERIES, 10000)).public static final String ILLEGAL_FETCH_DIRECTION_FOR_FORWARD_ONLY
TYPE_FORWARD_ONLY. This message is a template expecting the illegal fetch
direction as placeholder (example:
String.format(ILLEGAL_FETCH_DIRECTION_FOR_FORWARD_ONLY, FETCH_UNKNOWN)).public static final String INVALID_CATALOG_NAME
null or does not match the one of the current connection.public static final String CONNECTION_CREATION_FAILED
public static final String ARRAY_WAS_FREED
Array object previously
freed.public static final String BATCH_UPDATE_FAILED
Statement.executeBatch(). This message should be followed by the details for
each failed statement (example: BATCH_UPDATE_FAILED + "Statement failed").BATCH_STATEMENT_FAILURE_MSG,
Constant Field Valuespublic static final String BATCH_STATEMENT_FAILURE_MSG
Statement.executeBatch(). This template should be used in BATCH_UPDATE_FAILED and expects
the statement index in the batch and the error message (example:
String.format(BATCH_STATEMENT_FAILURE_MSG, 1, "Statement failed").BATCH_UPDATE_FAILED,
Constant Field Valuespublic static final String INVALID_PROFILE_NAME
String.format(INVALID_PROFILE_NAME, "undefined_profile")).public static final String PROPERTIES_PARSING_FROM_URL_FAILED
Copyright © 2020–2024 ING Bank. All rights reserved.