blob: 0b9423fcede1edd15d68dc3ed60018f8c2738e03 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.processors.odbc;
/**
* SQL state codes.
*/
public final class SqlStateCode {
/**
* No-op constructor to prevent instantiation.
*/
private SqlStateCode() {
// No-op.
}
/** Client has failed to open connection with specified server. */
public final static String CLIENT_CONNECTION_FAILED = "08001";
/** Connection unexpectedly turned out to be in closed state. */
public final static String CONNECTION_CLOSED = "08003";
/** Connection was rejected by server. */
public final static String CONNECTION_REJECTED = "08004";
/** IO error during communication. */
public final static String CONNECTION_FAILURE = "08006";
/** Null value occurred where it wasn't expected to. */
public final static String NULL_VALUE = "22004";
/** Parameter type is not supported. */
public final static String INVALID_PARAMETER_VALUE = "22023";
/** Data integrity constraint violation. */
public final static String CONSTRAINT_VIOLATION = "23000";
/** Invalid result set state. */
public final static String INVALID_CURSOR_STATE = "24000";
/** Conversion failure. */
public final static String CONVERSION_FAILED = "0700B";
/** Invalid transaction level. */
public final static String INVALID_TRANSACTION_LEVEL = "0700E";
/** Requested operation is not supported. */
public final static String UNSUPPORTED_OPERATION = "0A000";
/** Transaction state exception. */
public final static String TRANSACTION_STATE_EXCEPTION = "25000";
/** Transaction state exception. */
public final static String SERIALIZATION_FAILURE = "40001";
/** Parsing exception. */
public final static String PARSING_EXCEPTION = "42000";
/** Internal error. */
public final static String INTERNAL_ERROR = "50000"; // Generic value for custom "50" class.
}