ClickHouse/dbms/include/DB/Core/ErrorCodes.h

146 lines
3.7 KiB
C
Raw Normal View History

2011-08-28 02:22:23 +00:00
#pragma once
2010-03-01 16:59:51 +00:00
namespace DB
{
namespace ErrorCodes
{
enum ErrorCodes
{
2010-03-03 19:48:02 +00:00
UNSUPPORTED_METHOD,
UNSUPPORTED_PARAMETER,
UNEXPECTED_END_OF_FILE,
2010-06-04 18:25:25 +00:00
CANNOT_READ_DATA_FROM_READ_BUFFER,
2010-03-03 19:48:02 +00:00
CANNOT_PARSE_TEXT,
2010-03-04 19:20:28 +00:00
INCORRECT_NUMBER_OF_COLUMNS,
THERE_IS_NO_COLUMN,
SIZES_OF_COLUMNS_DOESNT_MATCH,
NOT_FOUND_COLUMN_IN_BLOCK,
2010-03-05 15:29:17 +00:00
POSITION_OUT_OF_BOUND,
2010-03-12 18:25:35 +00:00
PARAMETER_OUT_OF_BOUND,
SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH,
EMPTY_TUPLE,
2010-03-18 19:32:14 +00:00
DUPLICATE_COLUMN,
NO_SUCH_COLUMN_IN_TABLE,
2010-05-20 19:29:04 +00:00
DELIMITER_IN_STRING_LITERAL_DOESNT_MATCH,
CANNOT_INSERT_ELEMENT_INTO_CONSTANT_COLUMN,
SIZE_OF_ARRAY_DOESNT_MATCH_SIZE_OF_FIXEDARRAY_COLUMN,
2010-05-21 19:52:50 +00:00
NUMBER_OF_COLUMNS_DOESNT_MATCH,
CANNOT_READ_ALL_DATA_FROM_TAB_SEPARATED_INPUT,
CANNOT_PARSE_ALL_VALUE_FROM_TAB_SEPARATED_INPUT,
2010-05-28 19:13:55 +00:00
CANNOT_READ_FROM_ISTREAM,
CANNOT_WRITE_TO_OSTREAM,
CANNOT_PARSE_ESCAPE_SEQUENCE,
CANNOT_PARSE_QUOTED_STRING,
2010-06-01 13:35:09 +00:00
CANNOT_PARSE_INPUT_ASSERTION_FAILED,
CANNOT_PRINT_FLOAT_OR_DOUBLE_NUMBER,
CANNOT_PRINT_INTEGER,
2010-06-04 18:25:25 +00:00
CANNOT_READ_SIZE_OF_COMPRESSED_CHUNK,
CANNOT_READ_COMPRESSED_CHUNK,
ATTEMPT_TO_READ_AFTER_EOF,
CANNOT_READ_ALL_DATA,
2010-06-24 19:12:10 +00:00
TOO_MUCH_ARGUMENTS_FOR_FUNCTION,
TOO_LESS_ARGUMENTS_FOR_FUNCTION,
2010-06-25 19:55:19 +00:00
UNKNOWN_ELEMENT_IN_AST,
2011-05-27 18:47:00 +00:00
CANNOT_PARSE_DATE,
TOO_LARGE_SIZE_COMPRESSED,
CHECKSUM_DOESNT_MATCH,
2011-08-07 02:08:22 +00:00
CANNOT_PARSE_DATETIME,
2011-08-09 15:57:33 +00:00
NUMBER_OF_ARGUMENTS_DOESNT_MATCH,
ILLEGAL_TYPE_OF_ARGUMENT,
ILLEGAL_COLUMN,
ILLEGAL_NUMBER_OF_RESULT_COLUMNS,
2011-08-12 18:27:39 +00:00
UNKNOWN_FUNCTION,
UNKNOWN_IDENTIFIER,
NOT_IMPLEMENTED,
LOGICAL_ERROR,
2011-08-15 00:55:43 +00:00
UNKNOWN_TYPE,
2011-08-15 02:24:44 +00:00
EMPTY_LIST_OF_COLUMNS_QUERIED,
COLUMN_QUERIED_MORE_THAN_ONCE,
TYPE_MISMATCH,
2011-08-18 20:33:20 +00:00
STORAGE_DOESNT_ALLOW_PARAMETERS,
2012-05-22 19:32:56 +00:00
STORAGE_REQUIRES_PARAMETER,
2011-08-18 20:33:20 +00:00
UNKNOWN_STORAGE,
TABLE_ALREADY_EXISTS,
2011-08-19 18:31:14 +00:00
TABLE_METADATA_ALREADY_EXISTS,
2011-08-27 04:34:29 +00:00
ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER,
2011-08-28 08:02:11 +00:00
UNKNOWN_TABLE,
ONLY_FILTER_COLUMN_IN_BLOCK,
SYNTAX_ERROR,
2011-09-19 01:42:16 +00:00
UNKNOWN_AGGREGATE_FUNCTION,
CANNOT_READ_AGGREGATE_FUNCTION_FROM_TEXT,
CANNOT_WRITE_AGGREGATE_FUNCTION_AS_TEXT,
2011-09-25 03:37:09 +00:00
NOT_A_COLUMN,
2011-09-26 07:25:22 +00:00
ILLEGAL_KEY_OF_AGGREGATION,
2011-09-26 12:50:50 +00:00
CANNOT_GET_SIZE_OF_FIELD,
2011-10-10 10:05:39 +00:00
ARGUMENT_OUT_OF_BOUND,
CANNOT_CONVERT_TYPE,
2011-10-17 17:30:36 +00:00
CANNOT_WRITE_AFTER_END_OF_BUFFER,
2011-10-16 03:05:15 +00:00
CANNOT_PARSE_NUMBER,
2011-10-24 12:10:59 +00:00
UNKNOWN_FORMAT,
CANNOT_READ_FROM_FILE_DESCRIPTOR,
CANNOT_WRITE_TO_FILE_DESCRIPTOR,
CANNOT_OPEN_FILE,
CANNOT_CLOSE_FILE,
2011-10-31 06:37:12 +00:00
UNKNOWN_TYPE_OF_QUERY,
INCORRECT_FILE_NAME,
2011-10-31 17:30:44 +00:00
INCORRECT_QUERY,
2011-11-05 23:31:19 +00:00
UNKNOWN_DATABASE,
DATABASE_ALREADY_EXISTS,
DIRECTORY_DOESNT_EXIST,
DIRECTORY_ALREADY_EXISTS,
2011-11-07 01:15:37 +00:00
FORMAT_IS_NOT_SUITABLE_FOR_INPUT,
RECEIVED_ERROR_FROM_REMOTE_IO_SERVER,
CANNOT_SEEK_THROUGH_FILE,
CANNOT_TRUNCATE_FILE,
2012-01-05 18:35:22 +00:00
UNKNOWN_COMPRESSION_METHOD,
2012-01-10 22:11:51 +00:00
EMPTY_LIST_OF_COLUMNS_PASSED,
SIZES_OF_MARKS_FILES_ARE_INCONSISTENT,
2012-02-27 06:28:20 +00:00
EMPTY_DATA_PASSED,
UNKNOWN_AGGREGATED_DATA_VARIANT,
CANNOT_MERGE_DIFFERENT_AGGREGATED_DATA_VARIANTS,
2012-03-09 15:46:52 +00:00
CANNOT_READ_FROM_SOCKET,
CANNOT_WRITE_TO_SOCKET,
2012-03-11 08:52:56 +00:00
CANNOT_READ_ALL_DATA_FROM_CHUNKED_INPUT,
CANNOT_WRITE_TO_EMPTY_BLOCK_OUTPUT_STREAM,
UNKNOWN_PACKET_FROM_CLIENT,
2012-03-25 03:47:13 +00:00
UNKNOWN_PACKET_FROM_SERVER,
2012-03-11 08:52:56 +00:00
UNEXPECTED_PACKET_FROM_CLIENT,
2012-03-25 03:47:13 +00:00
UNEXPECTED_PACKET_FROM_SERVER,
2012-03-11 08:52:56 +00:00
RECEIVED_DATA_FOR_WRONG_QUERY_ID,
TOO_SMALL_BUFFER_SIZE,
2012-03-26 02:48:08 +00:00
CANNOT_READ_HISTORY,
CANNOT_APPEND_HISTORY,
FILE_DOESNT_EXIST,
2012-05-08 11:19:00 +00:00
NO_DATA_TO_INSERT,
2012-05-09 08:16:09 +00:00
CANNOT_BLOCK_SIGNAL,
CANNOT_UNBLOCK_SIGNAL,
CANNOT_WAIT_FOR_SIGNAL,
2012-07-12 19:49:22 +00:00
THERE_IS_NO_SESSION,
2012-07-15 23:13:08 +00:00
CANNOT_CLOCK_GETTIME,
2012-08-02 19:03:32 +00:00
UNKNOWN_SETTING,
2012-08-13 20:16:06 +00:00
THERE_IS_NO_DEFAULT_VALUE,
2012-08-16 17:02:31 +00:00
INCORRECT_DATA,
2012-08-17 19:53:11 +00:00
TABLE_METADATA_DOESNT_EXIST,
2012-08-20 19:21:04 +00:00
ENGINE_REQUIRED,
2012-08-23 18:05:31 +00:00
CANNOT_INSERT_VALUE_OF_DIFFERENT_SIZE_INTO_TUPLE,
2012-08-23 20:22:44 +00:00
UNKNOWN_SET_DATA_VARIANT,
2012-08-23 20:35:05 +00:00
INCOMPATIBLE_COLUMNS,
2012-08-24 19:42:03 +00:00
UNKNOWN_TYPE_OF_AST_NODE,
INCORRECT_ELEMENT_OF_SET,
2012-08-24 20:40:34 +00:00
INCORRECT_RESULT_OF_SCALAR_SUBQUERY,
2012-08-26 02:08:18 +00:00
CANNOT_GET_RETURN_TYPE,
ILLEGAL_INDEX,
2012-08-26 12:18:50 +00:00
TOO_LARGE_ARRAY_SIZE,
2012-08-27 05:13:14 +00:00
FUNCTION_IS_SPECIAL,
2012-08-29 18:49:54 +00:00
CANNOT_READ_ARRAY_FROM_TEXT,
2011-11-28 05:51:33 +00:00
POCO_EXCEPTION = 1000,
STD_EXCEPTION,
UNKNOWN_EXCEPTION,
2010-03-01 16:59:51 +00:00
};
}
}