Class IgniteQueryErrorCode
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.query.IgniteQueryErrorCode
-
public final class IgniteQueryErrorCode extends Object
Error codes for query operations.
-
-
Field Summary
Fields Modifier and Type Field Description static intCACHE_NOT_FOUNDCache not found.static intCLUSTER_READ_ONLY_MODE_ENABLEDAttempt to INSERT, UPDATE or DELETE value on read-only cluster.static intCOLUMN_ALREADY_EXISTSRequired column already exists.static intCOLUMN_NOT_FOUNDRequired column not found.static intCONCURRENT_UPDATEAttempt to UPDATE or DELETE a key whose value has been updated concurrently by someone else.static intCONVERSION_FAILEDConversion failure.static intDB_UNRECOVERABLE_ERRORDatabase is closed by some reasons.static intDUPLICATE_KEYAttempt to INSERT a key that is already in cache.static intENTRY_PROCESSINGEntryProcessorhas thrown an exception duringIgniteCache.invokeAll(java.util.Map<? extends K, ? extends javax.cache.processor.EntryProcessor<K, V, T>>, java.lang.Object...).static intFIELD_TYPE_MISMATCHField type mismatch. e.g.: cause isClassCastException.static intINDEX_ALREADY_EXISTSIndex already exists.static intINDEX_NOT_FOUNDIndex does not exist.static intKEY_SCALE_OUT_OF_RANGEAttempt to INSERT, UPDATE or MERGE value which scale exceed maximum DECIMAL column scale.static intKEY_UPDATEAnalysis detected that the statement is trying to directlyUPDATEkey or its fields.static intNULL_KEYAttempt to INSERT or MERGEnullkey.static intNULL_TABLE_DESCRIPTORRequired table does not have a descriptor set.static intNULL_VALUEAttempt to INSERT or MERGEnullvalue, or to to setnullto aNOT NULLcolumn.static intPARSINGGeneral parsing error - for the cases when there's no more specific code available.static intQUERY_CANCELEDQuery canceled.static intSCHEMA_NOT_FOUNDRequired schema not found.static intSTMT_TYPE_MISMATCHStatement type does not match that declared by JDBC driver.static intTABLE_ALREADY_EXISTSRequired table already exists.static intTABLE_DROP_FAILEDDROP TABLE failed.static intTABLE_NOT_FOUNDRequired table not found.static intTOO_LONG_KEYAttempt to INSERT, UPDATE or MERGE key that exceed maximum column length.static intTOO_LONG_VALUEAttempt to INSERT, UPDATE or MERGE value that exceed maximum column length.static intUNEXPECTED_ELEMENT_TYPECode encountered SQL expression of some type that it did not expect in current analysis context.static intUNEXPECTED_OPERATIONCode encountered SQL statement of some type that it did not expect in current analysis context.static intUNKNOWNUnknown error, or the one without specific code.static intUNSUPPORTED_OPERATIONRequested operation is not supported.static intVALUE_SCALE_OUT_OF_RANGEAttempt to INSERT, UPDATE or MERGE value which scale exceed maximum DECIMAL column scale.static intVIEW_ALREADY_EXISTSView already exists.static intVIEW_NOT_FOUNDView does not exist.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcodeToSqlState(int statusCode)Map Ignite specific error code to standard SQL state.static SQLExceptioncreateJdbcSqlException(String msg, int code)Create aSQLExceptionfor given code and message with detected state.
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
Unknown error, or the one without specific code.- See Also:
- Constant Field Values
-
PARSING
public static final int PARSING
General parsing error - for the cases when there's no more specific code available.- See Also:
- Constant Field Values
-
UNSUPPORTED_OPERATION
public static final int UNSUPPORTED_OPERATION
Requested operation is not supported.- See Also:
- Constant Field Values
-
UNEXPECTED_OPERATION
public static final int UNEXPECTED_OPERATION
Code encountered SQL statement of some type that it did not expect in current analysis context.- See Also:
- Constant Field Values
-
UNEXPECTED_ELEMENT_TYPE
public static final int UNEXPECTED_ELEMENT_TYPE
Code encountered SQL expression of some type that it did not expect in current analysis context.- See Also:
- Constant Field Values
-
KEY_UPDATE
public static final int KEY_UPDATE
Analysis detected that the statement is trying to directlyUPDATEkey or its fields.- See Also:
- Constant Field Values
-
TABLE_NOT_FOUND
public static final int TABLE_NOT_FOUND
Required table not found.- See Also:
- Constant Field Values
-
NULL_TABLE_DESCRIPTOR
public static final int NULL_TABLE_DESCRIPTOR
Required table does not have a descriptor set.- See Also:
- Constant Field Values
-
STMT_TYPE_MISMATCH
public static final int STMT_TYPE_MISMATCH
Statement type does not match that declared by JDBC driver.- See Also:
- Constant Field Values
-
TABLE_DROP_FAILED
public static final int TABLE_DROP_FAILED
DROP TABLE failed.- See Also:
- Constant Field Values
-
INDEX_ALREADY_EXISTS
public static final int INDEX_ALREADY_EXISTS
Index already exists.- See Also:
- Constant Field Values
-
INDEX_NOT_FOUND
public static final int INDEX_NOT_FOUND
Index does not exist.- See Also:
- Constant Field Values
-
TABLE_ALREADY_EXISTS
public static final int TABLE_ALREADY_EXISTS
Required table already exists.- See Also:
- Constant Field Values
-
COLUMN_NOT_FOUND
public static final int COLUMN_NOT_FOUND
Required column not found.- See Also:
- Constant Field Values
-
COLUMN_ALREADY_EXISTS
public static final int COLUMN_ALREADY_EXISTS
Required column already exists.- See Also:
- Constant Field Values
-
CONVERSION_FAILED
public static final int CONVERSION_FAILED
Conversion failure.- See Also:
- Constant Field Values
-
QUERY_CANCELED
public static final int QUERY_CANCELED
Query canceled.- See Also:
- Constant Field Values
-
SCHEMA_NOT_FOUND
public static final int SCHEMA_NOT_FOUND
Required schema not found.- See Also:
- Constant Field Values
-
DB_UNRECOVERABLE_ERROR
public static final int DB_UNRECOVERABLE_ERROR
Database is closed by some reasons.- See Also:
- Constant Field Values
-
VIEW_ALREADY_EXISTS
public static final int VIEW_ALREADY_EXISTS
View already exists.- See Also:
- Constant Field Values
-
VIEW_NOT_FOUND
public static final int VIEW_NOT_FOUND
View does not exist.- See Also:
- Constant Field Values
-
DUPLICATE_KEY
public static final int DUPLICATE_KEY
Attempt to INSERT a key that is already in cache.- See Also:
- Constant Field Values
-
CONCURRENT_UPDATE
public static final int CONCURRENT_UPDATE
Attempt to UPDATE or DELETE a key whose value has been updated concurrently by someone else.- See Also:
- Constant Field Values
-
NULL_KEY
public static final int NULL_KEY
Attempt to INSERT or MERGEnullkey.- See Also:
- Constant Field Values
-
NULL_VALUE
public static final int NULL_VALUE
Attempt to INSERT or MERGEnullvalue, or to to setnullto aNOT NULLcolumn.- See Also:
- Constant Field Values
-
ENTRY_PROCESSING
public static final int ENTRY_PROCESSING
EntryProcessorhas thrown an exception duringIgniteCache.invokeAll(java.util.Map<? extends K, ? extends javax.cache.processor.EntryProcessor<K, V, T>>, java.lang.Object...).- See Also:
- Constant Field Values
-
CACHE_NOT_FOUND
public static final int CACHE_NOT_FOUND
Cache not found.- See Also:
- Constant Field Values
-
TOO_LONG_KEY
public static final int TOO_LONG_KEY
Attempt to INSERT, UPDATE or MERGE key that exceed maximum column length.- See Also:
- Constant Field Values
-
TOO_LONG_VALUE
public static final int TOO_LONG_VALUE
Attempt to INSERT, UPDATE or MERGE value that exceed maximum column length.- See Also:
- Constant Field Values
-
VALUE_SCALE_OUT_OF_RANGE
public static final int VALUE_SCALE_OUT_OF_RANGE
Attempt to INSERT, UPDATE or MERGE value which scale exceed maximum DECIMAL column scale.- See Also:
- Constant Field Values
-
KEY_SCALE_OUT_OF_RANGE
public static final int KEY_SCALE_OUT_OF_RANGE
Attempt to INSERT, UPDATE or MERGE value which scale exceed maximum DECIMAL column scale.- See Also:
- Constant Field Values
-
CLUSTER_READ_ONLY_MODE_ENABLED
public static final int CLUSTER_READ_ONLY_MODE_ENABLED
Attempt to INSERT, UPDATE or DELETE value on read-only cluster.- See Also:
- Constant Field Values
-
FIELD_TYPE_MISMATCH
public static final int FIELD_TYPE_MISMATCH
Field type mismatch. e.g.: cause isClassCastException.- See Also:
- Constant Field Values
-
-
Method Detail
-
createJdbcSqlException
public static SQLException createJdbcSqlException(String msg, int code)
Create aSQLExceptionfor given code and message with detected state.- Parameters:
msg- Message.code- Ignite status code.- Returns:
SQLExceptionwith given details.
-
codeToSqlState
public static String codeToSqlState(int statusCode)
Map Ignite specific error code to standard SQL state.- Parameters:
statusCode- Ignite specific error code.- Returns:
- SQL state string.
- See Also:
- Wikipedia: SQLSTATE spec.,
IgniteQueryErrorCode
-
-