org.dizitart.no2.exceptions.ErrorCodes Maven / Gradle / Ivy
/*
*
* Copyright 2017-2018 Nitrite author or authors.
*
* Licensed 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.dizitart.no2.exceptions;
/**
* Nitrite error codes
*
* @since 1.0
* @author Anindya Chatterjee.
*/
public class ErrorCodes {
/* ValidationException Codes */
public static final int VE_NEGATIVE_PAGINATION_SIZE = 1001;
public static final int VE_NEGATIVE_PAGINATION_OFFSET = 1002;
public static final int VE_OFFSET_GREATER_THAN_SIZE = 1003;
public static final int VE_REPOSITORY_NOT_INITIALIZED = 1004;
public static final int VE_PROJECTION_PRIMITIVE_TYPE = 1005;
public static final int VE_PROJECTION_INTERFACE = 1006;
public static final int VE_PROJECTION_ARRAY = 1007;
public static final int VE_PROJECTION_ABSTRACT_TYPE = 1008;
public static final int VE_PROJECT_EMPTY_TYPE = 1009;
public static final int VE_SYNC_NO_REMOTE = 1010;
public static final int VE_INDEX_NULL_INDEX_TYPE = 1011;
public static final int VE_INDEX_NULL_FIELD = 1012;
public static final int VE_INDEX_EMPTY_FIELD = 1013;
public static final int VE_INDEX_NULL_COLLECTION = 1014;
public static final int VE_INDEX_EMPTY_COLLECTION = 1015;
public static final int VE_COLLECTION_NULL_NAME = 1016;
public static final int VE_COLLECTION_EMPTY_NAME = 1017;
public static final int VE_COLLECTION_NAME_RESERVED = 1018;
public static final int VE_SEARCH_TERM_NULL_FIELD = 1019;
public static final int VE_SEARCH_TERM_EMPTY_FIELD = 1020;
public static final int VE_IN_FILTER_NULL_FIELD = 1021;
public static final int VE_IN_FILTER_EMPTY_FIELD = 1022;
public static final int VE_IN_FILTER_NULL_VALUES = 1023;
public static final int VE_IN_FILTER_EMPTY_VALUES = 1024;
public static final int VE_REFLECT_NULL_START_CLASS = 1025;
public static final int VE_REFLECT_NULL_ANNOT_CLASS = 1026;
public static final int VE_REFLECT_FIELD_NULL_START_CLASS = 1027;
public static final int VE_REFLECT_FIELD_NO_SUCH_FIELD = 1028;
public static final int VE_OBJ_STORE_NULL_TYPE = 1029;
public static final int VE_INDEX_ANNOTATION_NULL_TYPE = 1030;
public static final int VE_INDEX_NULL_INDEX = 1031;
public static final int VE_OBJ_FILTER_NULL_AND_FILTERS = 1032;
public static final int VE_OBJ_FILTER_NULL_OR_FILTERS = 1033;
public static final int VE_OBJ_FILTER_NULL_NOT_FILTERS = 1034;
public static final int VE_IS_INDEXING_NULL_FIELD = 1035;
public static final int VE_HAS_INDEX_NULL_FIELD = 1036;
public static final int VE_FIND_EQUAL_INDEX_NULL_FIELD = 1037;
public static final int VE_FIND_GT_INDEX_NULL_FIELD = 1038;
public static final int VE_FIND_GT_INDEX_NULL_VALUE = 1039;
public static final int VE_FIND_GTE_INDEX_NULL_FIELD = 1040;
public static final int VE_FIND_GTE_INDEX_NULL_VALUE = 1041;
public static final int VE_FIND_LT_INDEX_NULL_FIELD = 1042;
public static final int VE_FIND_LT_INDEX_NULL_VALUE = 1043;
public static final int VE_FIND_LTE_INDEX_NULL_FIELD = 1044;
public static final int VE_FIND_LTE_INDEX_NULL_VALUE = 1045;
public static final int VE_FIND_IN_INDEX_NULL_FIELD = 1046;
public static final int VE_FIND_IN_INDEX_NULL_VALUE = 1047;
public static final int VE_FIND_TEXT_INDEX_NULL_FIELD = 1048;
public static final int VE_FIND_TEXT_INDEX_NULL_VALUE = 1049;
public static final int VE_CREATE_INDEX_NULL_FIELD = 1050;
public static final int VE_CREATE_INDEX_NULL_INDEX_TYPE = 1051;
public static final int VE_REBUILD_INDEX_NULL_INDEX = 1052;
public static final int VE_FIND_INDEX_NULL_INDEX = 1053;
public static final int VE_DROP_INDEX_NULL_FIELD = 1054;
public static final int VE_INSERT_NULL_DOCUMENT = 1055;
public static final int VE_INSERT_NULL_DOCUMENT_ARRAY = 1056;
public static final int VE_FIND_NULL_FIND_OPTIONS = 1057;
public static final int VE_FIND_FILTERED_NULL_FIND_OPTIONS = 1058;
public static final int VE_GET_BY_ID_NULL_ID = 1059;
public static final int VE_UPDATE_NULL_DOCUMENT = 1060;
public static final int VE_UPDATE_NULL_UPDATE_OPTIONS = 1061;
public static final int VE_SEARCH_SERVICE_NULL_NITRITE_SERVICE = 1062;
public static final int VE_SYNC_NULL_COLLECTION = 1063;
public static final int VE_RECOVER_NULL_FILE_NAME = 1064;
public static final int VE_RECOVER_EMPTY_FILE_NAME = 1065;
public static final int VE_RECOVER_NULL_WRITER = 1066;
public static final int VE_NC_REMOVE_NULL_DOCUMENT= 1067;
public static final int VE_PROJECT_NULL_PROJECTION = 1068;
public static final int VE_OBJ_CREATE_INDEX_NULL_FIELD = 1069;
public static final int VE_OBJ_UPDATE_NULL_OBJECT = 1070;
public static final int VE_OBJ_UPDATE_NULL_DOCUMENT = 1071;
public static final int VE_NC_REBUILD_INDEX_NULL_INDEX = 1072;
public static final int VE_OBJ_INVALID_EMBEDDED_FIELD = 1073;
public static final int VE_OBJ_INVALID_FIELD = 1074;
public static final int VE_BIG_DECIMAL_INVALID_FORMAT = 1075;
public static final int VE_INVALID_EMBEDDED_FIELD = 1076;
public static final int VE_NEGATIVE_LIST_INDEX_FIELD = 1077;
public static final int VE_INVALID_LIST_INDEX_FIELD = 1078;
public static final int VE_NEGATIVE_ARRAY_INDEX_FIELD = 1079;
public static final int VE_INVALID_ARRAY_INDEX_FIELD = 1080;
public static final int VE_INVALID_REMAINING_FIELD = 1081;
public static final int VE_TYPE_NOT_SERIALIZABLE = 1082;
public static final int VE_PROJECTION_WITH_NOT_NULL_VALUE = 1083;
public static final int VE_OBJ_STORE_NULL_KEY = 1084;
public static final int VE_OBJ_STORE_EMPTY_KEY = 1085;
public static final int VE_FIND_NOT_IN_INDEX_NULL_FIELD = 1086;
public static final int VE_FIND_NOT_IN_INDEX_NULL_VALUE = 1087;
public static final int VE_OBJ_REMOVE_NULL_OBJECT = 1088;
/* NitriteIOException Codes */
public static final int NIOE_DATABASE_OPENED = 2001;
public static final int NIOE_REPAIR_FAILED = 2002;
public static final int NIOE_IN_MEMORY_FAILED = 2003;
public static final int NIOE_STORE_CLOSED = 2004;
public static final int NIOE_COLLECTION_DROPPED = 2005;
public static final int NIOE_IMPORT_ERROR = 2006;
public static final int NIOE_IMPORT_READER_ERROR = 2007;
public static final int NIOE_IMPORT_READ_ERROR = 2008;
public static final int NIOE_EXPORT_ERROR = 2009;
public static final int NIOE_EXPORT_WRITER_ERROR = 2010;
public static final int NIOE_EXPORT_WRITE_ERROR = 2011;
public static final int NIOE_DIR_DOES_NOT_EXISTS = 2012;
public static final int NIOE_FILE_CREATE_FAILED = 2013;
public static final int NIOE_IN_MEMORY_READONLY_DB = 2014;
public static final int NIOE_PATH_IS_DIRECTORY = 2018;
/* InvalidOperationException Codes */
public static final int IOE_IN_MEMORY_READONLY_DB = 3001;
public static final int IOE_SORT_ON_ARRAY_TYPE = 3002;
public static final int IOE_REMOVE_DOCUMENT_ITERATOR = 3003;
public static final int IOE_OBJ_REMOVE_OBJECT_ITERATOR = 3004;
public static final int IOE_OBJ_REMOVE_PROJECTED_OBJECT_ITERATOR = 3005;
public static final int IOE_OBJ_COMPOUND_INDEX = 3006;
public static final int IOE_COMPOUND_INDEX = 3007;
public static final int IOE_REPLICATOR_RUNNING = 3008;
public static final int IOE_DOC_ID_AUTO_GENERATED = 3009;
public static final int IOE_OBJ_REMOVE_JOINED_OBJECT_ITERATOR = 3010;
public static final int IOE_OBJ_MULTI_UPDATE_WITH_JUST_ONCE = 3011;
/* FilterException Codes */
public static final int FE_AND_INVALID = 4001;
public static final int FE_VALUE_NOT_COMPARABLE = 4002;
public static final int FE_ELEM_MATCH_NESTED = 4003;
public static final int FE_ELEM_MATCH_FULL_TEXT = 4004;
public static final int FE_ELEM_MATCH_NO_ARRAY = 4005;
public static final int FE_ELEM_MATCH_INVALID_FILTER = 4006;
public static final int FE_ELEM_MATCH_GT_FILTER_INVALID_FIELD = 4007;
public static final int FE_ELEM_MATCH_GT_FILTER_INVALID_ITEM = 4008;
public static final int FE_ELEM_MATCH_GTE_FILTER_INVALID_FIELD = 4009;
public static final int FE_ELEM_MATCH_GTE_FILTER_INVALID_ITEM = 4010;
public static final int FE_ELEM_MATCH_LT_FILTER_INVALID_FIELD = 4011;
public static final int FE_ELEM_MATCH_LT_FILTER_INVALID_ITEM = 4012;
public static final int FE_ELEM_MATCH_LTE_FILTER_INVALID_FIELD = 4013;
public static final int FE_ELEM_MATCH_LTE_FILTER_INVALID_ITEM = 4014;
public static final int FE_ELEM_MATCH_INVALID_REGEX = 4015;
public static final int FE_ELEM_MATCH_REGEX_INVALID_ITEM = 4016;
public static final int FE_GTE_FIELD_NOT_COMPARABLE = 4017;
public static final int FE_GT_FIELD_NOT_COMPARABLE = 4018;
public static final int FE_LTE_FIELD_NOT_COMPARABLE = 4019;
public static final int FE_LT_FIELD_NOT_COMPARABLE = 4020;
public static final int FE_OR_INVALID = 4021;
public static final int FE_REGEX_NO_STRING_VALUE = 4022;
public static final int FE_FTS_STAR_NOT_VALID = 4023;
public static final int FE_FILTERED_FIND_FAILED = 4024;
public static final int FE_FILTERED_FIND_WITH_OPTION_FAILED = 4025;
public static final int FE_OBJ_ELEM_MATCH_NESTED = 4026;
public static final int FE_OBJ_ELEM_MATCH_FULL_TEXT = 4027;
public static final int FE_OBJ_ELEM_MATCH_NO_ARRAY = 4028;
public static final int FE_OBJ_ELEM_MATCH_INVALID_FILTER = 4029;
public static final int FE_OBJ_ELEM_MATCH_GT_FILTER_INVALID_FIELD = 4030;
public static final int FE_OBJ_ELEM_MATCH_GT_FILTER_INVALID_ITEM = 4031;
public static final int FE_OBJ_ELEM_MATCH_GTE_FILTER_INVALID_FIELD = 4032;
public static final int FE_OBJ_ELEM_MATCH_GTE_FILTER_INVALID_ITEM = 4033;
public static final int FE_OBJ_ELEM_MATCH_LT_FILTER_INVALID_FIELD = 4034;
public static final int FE_OBJ_ELEM_MATCH_LT_FILTER_INVALID_ITEM = 4035;
public static final int FE_OBJ_ELEM_MATCH_LTE_FILTER_INVALID_FIELD = 4036;
public static final int FE_OBJ_ELEM_MATCH_LTE_FILTER_INVALID_ITEM = 4037;
public static final int FE_OBJ_ELEM_MATCH_INVALID_REGEX = 4038;
public static final int FE_OBJ_ELEM_MATCH_REGEX_INVALID_ITEM = 4039;
public static final int FE_IN_SEARCH_TERM_NOT_COMPARABLE = 4040;
public static final int FE_SEARCH_TERM_NOT_COMPARABLE = 4041;
public static final int FE_INDEX_NON_COMPARABLE_SEARCH = 4042;
public static final int FE_SEARCH_TERM_INVALID_LEADING_STAR = 4043;
public static final int FE_SEARCH_TERM_INVALID_TRAILING_STAR = 4044;
public static final int FE_MULTIPLE_WORDS_WITH_WILDCARD = 4045;
public static final int FE_NOT_IN_SEARCH_TERM_NOT_COMPARABLE = 4046;
/* IndexingException Codes */
public static final int IE_TEXT_FILTER_FIELD_NOT_INDEXED = 5001;
public static final int IE_REBUILD_INDEX_FIELD_NOT_INDEXED = 5002;
public static final int IE_VALIDATE_REBUILD_INDEX_RUNNING = 5003;
public static final int IE_FULL_TEXT_NON_STRING_VALUE = 5004;
public static final int IE_INDEX_EXISTS = 5005;
public static final int IE_CREATE_INDEX_FAILED = 5006;
public static final int IE_CAN_NOT_DROP_ALL_RUNNING_INDEX = 5007;
public static final int IE_CAN_NOT_DROP_RUNNING_INDEX = 5008;
public static final int IE_REBUILD_INDEX_RUNNING = 5009;
public static final int IE_DROP_NON_EXISTING_INDEX = 5010;
public static final int IE_REMOVE_FULL_TEXT_INDEX_FAILED = 5011;
public static final int IE_OBJ_INDICES_INVALID_FIELD = 5012;
public static final int IE_OBJ_INDEX_INVALID_FIELD = 5013;
public static final int IE_INDEX_ON_ARRAY_NOT_SUPPORTED = 5014;
public static final int IE_INDEX_ON_NON_COMPARABLE_FIELD = 5015;
public static final int IE_OBJ_INDEX_ON_ARRAY_NOT_SUPPORTED = 5016;
public static final int IE_OBJ_INDEX_ON_NON_COMPARABLE_FIELD = 5017;
public static final int IE_FAILED_TO_WRITE_FTS_DATA = 5018;
public static final int IE_FAILED_TO_QUERY_FTS_DATA = 5019;
public static final int IE_INVALID_TYPE_FOR_INDEX = 5020;
public static final int IE_REBUILD_INDEX_DOES_NOT_EXISTS = 5021;
/* InvalidIdException Codes */
public static final int IIE_COMPARISON_WITH_NULL_ID = 6001;
public static final int IIE_INVALID_ID_FOUND = 6002;
public static final int IIE_NULL_ID = 6003;
public static final int IIE_ID_FIELD_NOT_ACCESSIBLE = 6004;
public static final int IIE_ID_VALUE_EMPTY_STRING = 6005;
public static final int IIE_FAILED_TO_CREATE_AUTO_ID = 6006;
public static final int IIE_NULL_ID_FILTER_VALUE = 6007;
public static final int IIE_CANNOT_ACCESS_AUTO_ID = 6008;
public static final int IIE_AUTO_ID_ALREADY_SET = 6009;
/* SecurityException Codes */
public static final int SE_INVALID_USER_PASSWORD = 7001;
public static final int SE_NO_USER_MAP_FOUND = 7002;
public static final int SE_USER_MAP_SHOULD_NOT_EXISTS = 7003;
public static final int SE_NULL_USER_CREDENTIAL = 7004;
public static final int SE_USER_ID_EMPTY = 7005;
public static final int SE_PASSWORD_EMPTY = 7006;
/* NotIdentifiableException Codes */
public static final int NIE_REMOVE_FAILED_FOR_NO_ID = 8001;
public static final int NIE_OBJ_REMOVE_FAILED_FOR_NO_ID = 8002;
public static final int NIE_OBJ_UPDATE_FAILED_FOR_NO_ID = 8003;
public static final int NIE_OBJ_MULTIPLE_ID = 8004;
public static final int NIE_UPDATE_FAILED_FOR_NO_ID = 8005;
/* ObjectMappingException Codes */
public static final int OME_CYCLE_DETECTED = 9001;
public static final int OME_NO_DEFAULT_CTOR = 9002;
public static final int OME_PARSE_JSON_FAILED = 9003;
public static final int OME_SERIALIZE_TO_JSON_FAILED = 9004;
/* UniqueConstraintException Codes */
public static final int UCE_CONSTRAINT_VIOLATED = 10001;
public static final int UCE_BUILD_INDEX_CONSTRAINT_VIOLATED = 10002;
public static final int UCE_UPDATE_INDEX_CONSTRAINT_VIOLATED = 10003;
public static final int UCE_REFRESH_INDEX_CONSTRAINT_VIOLATED = 10004;
/* SyncException Codes */
public static final int SYE_GET_ACCOUNT_REMOTE_ERROR = 11001;
public static final int SYE_CREATE_ACCOUNT_REMOTE_ERROR = 11002;
public static final int SYE_CREATE_ACCOUNT_FAILED = 11003;
public static final int SYE_DELETE_ACCOUNT_FAILED = 11004;
public static final int SYE_DELETE_ACCOUNT_REMOTE_ERROR = 11005;
public static final int SYE_GET_SIZE_REMOTE_ERROR = 11006;
public static final int SYE_CLEAR_REMOTE_ERROR = 11007;
public static final int SYE_CLEAR_FAILED = 11008;
public static final int SYE_FETCH_REMOTE_ERROR = 11009;
public static final int SYE_CHANGE_SINCE_REMOTE_ERROR = 11010;
public static final int SYE_CHANGE_REMOTE_ERROR = 11011;
public static final int SYE_TRY_LOCK_REMOTE_ERROR = 11012;
public static final int SYE_RELEASE_LOCK_FAILED = 11013;
public static final int SYE_RELEASE_LOCK_REMOTE_ERROR = 11014;
public static final int SYE_GET_ACCOUNT_FAILED = 11015;
public static final int SYE_CHANGE_SINCE_FAILED = 11016;
public static final int SYE_CHANGE_FAILED = 11017;
public static final int SYE_FETCH_FAILED = 11018;
public static final int SYE_SIZE_FAILED = 11019;
public static final int SYE_IS_ONLINE_FAILED = 11020;
public static final int SYE_TRY_LOCK_FAILED = 11021;
public static final int SYE_UPDATE_ACCOUNT_FAILED = 11022;
public static final int SYE_UPDATE_ACCOUNT_REMOTE_ERROR = 11023;
}