blob: 2257f956d09bec08a56288a2ae87b73bc8a6c779 [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;
import org.apache.ignite.cluster.ClusterState;
/**
* 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 static final String CLIENT_CONNECTION_FAILED = "08001";
/** Connection unexpectedly turned out to be in closed state. */
public static final String CONNECTION_CLOSED = "08003";
/** Connection was rejected by server. */
public static final String CONNECTION_REJECTED = "08004";
/** IO error during communication. */
public static final String CONNECTION_FAILURE = "08006";
/** Null value occurred where it wasn't expected to. */
public static final String NULL_VALUE = "22004";
/** Parameter type is not supported. */
public static final String INVALID_PARAMETER_VALUE = "22023";
/** Data integrity constraint violation. */
public static final String CONSTRAINT_VIOLATION = "23000";
/** Invalid result set state. */
public static final String INVALID_CURSOR_STATE = "24000";
/** Conversion failure. */
public static final String CONVERSION_FAILED = "0700B";
/** Invalid transaction level. */
public static final String INVALID_TRANSACTION_LEVEL = "0700E";
/** Requested operation is not supported. */
public static final String UNSUPPORTED_OPERATION = "0A000";
/** Transaction state exception. */
public static final String TRANSACTION_STATE_EXCEPTION = "25000";
/** Transaction state exception. */
public static final String SERIALIZATION_FAILURE = "40001";
/** Parsing exception. */
public static final String PARSING_EXCEPTION = "42000";
/** Internal error. */
public static final String INTERNAL_ERROR = "50000"; // Generic value for custom "50" class.
/**
* Read only mode enabled on cluster. {@link ClusterState#ACTIVE_READ_ONLY}.
* Value is equal to {@code org.h2.api.ErrorCode#DATABASE_IS_READ_ONLY} code.
*/
public static final String CLUSTER_READ_ONLY_MODE_ENABLED = "90097";
/** Query canceled. */
public static final String QUERY_CANCELLED = "57014";
}