Variable ERROR_MESSAGESConst
ERROR_MESSAGES: {
ADAPTER_LOAD_METHOD_REQUIRED: "Adapter must implement load() method";
ADAPTER_NOT_CONFIGURED: "No persistence adapter configured";
ADAPTER_SAVE_METHOD_REQUIRED: "Adapter must implement save() method";
COLLECTION_ALREADY_EXISTS: (name: string) => string;
COLLECTION_DATA_INVALID: (name: string) => string;
COLLECTION_LOAD_FAILED: (name: string, message: string) => string;
COLLECTION_NAME_INVALID_CHARS: "Collection name contains invalid characters";
COLLECTION_NAME_REQUIRED: "Collection name must be a non-empty string";
COLLECTION_NAME_TOO_LONG: (maxLength: number) => string;
COLLECTION_NOT_FOUND: (name: string) => string;
COLLECTION_SIZE_LIMIT_EXCEEDED: (size: number, max: number) => string;
COLLECTIONS_LIMIT_EXCEEDED: (limit: number) => string;
DATABASE_FILE_TOO_LARGE: (size: number) => string;
DATABASE_INVALID_FORMAT: "Invalid database format: expected object";
DATABASE_LOAD_FAILED: (message: string) => string;
DATABASE_SAVE_FAILED: (message: string) => string;
DATABASE_TOO_LARGE_TO_SAVE: (size: number) => string;
DOCUMENT_ARRAY_EMPTY: "Cannot insert empty document array";
DOCUMENT_BATCH_TOO_LARGE: (max: number) => string;
DOCUMENT_CIRCULAR_REF: "Document contains circular references";
DOCUMENT_ID_COUNTER_OVERFLOW: "Document ID counter overflow - too many documents created";
DOCUMENT_ID_EXISTS: (id: string) => string;
DOCUMENT_ID_INVALID: (id: string) => string;
DOCUMENT_MUST_BE_OBJECT: "Document must be a valid object";
DOCUMENT_NON_SERIALIZABLE: "Document contains non-serializable data";
DOCUMENT_REQUIRED: "Document(s) required for insert operation";
DOCUMENT_TOO_LARGE: (size: number, max: number) => string;
DOCUMENTS_FORMAT_INVALID: (name: string) => string;
DOCUMENTS_TOO_MANY: (name: string, max: number) => string;
FIELD_NAME_DANGEROUS: (field: string) => string;
FIELD_NAME_MUST_BE_STRING: "Field names must be strings";
FIELD_NAME_TOO_LONG: (field: string, maxLength: number) => string;
INDEX_ALREADY_EXISTS: (field: string) => string;
INDEX_FIELD_MUST_BE_STRING: "Index field must be a string";
INDEX_TOO_MANY: (max: number) => string;
INDICES_FORMAT_INVALID: (name: string) => string;
QUERY_ENGINE_INVALID_PARAMS: "Invalid parameters for query execution";
QUERY_INVALID_OPERATORS: (operators: string[]) => string;
QUERY_MUST_BE_OBJECT: "Query must be a valid object";
QUERY_REQUIRED: "Query required for update operation";
QUERY_TOO_COMPLEX: (maxOperators: number) => string;
QUERY_TOO_DEEP: (maxDepth: number) => string;
QUERY_TOO_LARGE: (maxSize: number) => string;
QUERY_UNKNOWN_OPERATOR: (operator: string) => string;
TOO_MANY_COLLECTIONS: (max: number) => string;
TRANSACTION_AFFECTED_ZERO: (operation: string) => string;
TRANSACTION_MAX_EXCEEDED: "Maximum number of concurrent transactions exceeded";
TRANSACTION_NOT_ACTIVE: (id: string) => string;
TRANSACTION_NOT_FOUND: (id: string) => string;
TRANSACTION_ROLLBACK_REMOVE_NOT_SUPPORTED: "Transaction rollback for removes is not fully supported";
TRANSACTION_ROLLBACK_UPDATE_NOT_SUPPORTED: "Transaction rollback for updates is not fully supported";
TRANSACTION_TIMEOUT: (id: string) => string;
UPDATE_CHANGES_REQUIRED: "Changes object required for update operation";
UPDATE_ID_FORBIDDEN: "Cannot update _id field";
UPDATE_MUST_SPECIFY_FIELD: "Update operation must specify at least one field to change";
UPDATE_NESTED_NOT_SUPPORTED: "Nested object updates not supported";
} = ...
Type Declaration
ReadonlyADAPTER_LOAD_METHOD_REQUIRED: "Adapter must implement load() method"
ReadonlyADAPTER_SAVE_METHOD_REQUIRED: "Adapter must implement save() method"
ReadonlyCOLLECTION_ALREADY_EXISTS: (name: string) => string
ReadonlyCOLLECTION_DATA_INVALID: (name: string) => string
ReadonlyCOLLECTION_LOAD_FAILED: (name: string, message: string) => string
ReadonlyCOLLECTION_NAME_INVALID_CHARS: "Collection name contains invalid characters"
ReadonlyCOLLECTION_NAME_REQUIRED: "Collection name must be a non-empty string"
ReadonlyCOLLECTION_NAME_TOO_LONG: (maxLength: number) => string
ReadonlyCOLLECTION_NOT_FOUND: (name: string) => string
ReadonlyCOLLECTION_SIZE_LIMIT_EXCEEDED: (size: number, max: number) => string
ReadonlyCOLLECTIONS_LIMIT_EXCEEDED: (limit: number) => string
ReadonlyDATABASE_FILE_TOO_LARGE: (size: number) => string
ReadonlyDATABASE_LOAD_FAILED: (message: string) => string
ReadonlyDATABASE_SAVE_FAILED: (message: string) => string
ReadonlyDATABASE_TOO_LARGE_TO_SAVE: (size: number) => string
ReadonlyDOCUMENT_ARRAY_EMPTY: "Cannot insert empty document array"
ReadonlyDOCUMENT_BATCH_TOO_LARGE: (max: number) => string
ReadonlyDOCUMENT_CIRCULAR_REF: "Document contains circular references"
ReadonlyDOCUMENT_ID_COUNTER_OVERFLOW: "Document ID counter overflow - too many documents created"
ReadonlyDOCUMENT_ID_EXISTS: (id: string) => string
ReadonlyDOCUMENT_ID_INVALID: (id: string) => string
ReadonlyDOCUMENT_MUST_BE_OBJECT: "Document must be a valid object"
ReadonlyDOCUMENT_NON_SERIALIZABLE: "Document contains non-serializable data"
ReadonlyDOCUMENT_REQUIRED: "Document(s) required for insert operation"
ReadonlyDOCUMENT_TOO_LARGE: (size: number, max: number) => string
ReadonlyDOCUMENTS_TOO_MANY: (name: string, max: number) => string
ReadonlyFIELD_NAME_DANGEROUS: (field: string) => string
ReadonlyFIELD_NAME_MUST_BE_STRING: "Field names must be strings"
ReadonlyFIELD_NAME_TOO_LONG: (field: string, maxLength: number) => string
ReadonlyINDEX_ALREADY_EXISTS: (field: string) => string
ReadonlyINDEX_FIELD_MUST_BE_STRING: "Index field must be a string"
ReadonlyINDEX_TOO_MANY: (max: number) => string
ReadonlyQUERY_ENGINE_INVALID_PARAMS: "Invalid parameters for query execution"
ReadonlyQUERY_INVALID_OPERATORS: (operators: string[]) => string
ReadonlyQUERY_MUST_BE_OBJECT: "Query must be a valid object"
ReadonlyQUERY_REQUIRED: "Query required for update operation"
ReadonlyQUERY_TOO_COMPLEX: (maxOperators: number) => string
ReadonlyQUERY_TOO_DEEP: (maxDepth: number) => string
ReadonlyQUERY_TOO_LARGE: (maxSize: number) => string
ReadonlyQUERY_UNKNOWN_OPERATOR: (operator: string) => string
ReadonlyTOO_MANY_COLLECTIONS: (max: number) => string
ReadonlyTRANSACTION_AFFECTED_ZERO: (operation: string) => string
ReadonlyTRANSACTION_MAX_EXCEEDED: "Maximum number of concurrent transactions exceeded"
ReadonlyTRANSACTION_NOT_ACTIVE: (id: string) => string
ReadonlyTRANSACTION_NOT_FOUND: (id: string) => string
ReadonlyTRANSACTION_ROLLBACK_REMOVE_NOT_SUPPORTED: "Transaction rollback for removes is not fully supported"
ReadonlyTRANSACTION_ROLLBACK_UPDATE_NOT_SUPPORTED: "Transaction rollback for updates is not fully supported"
ReadonlyTRANSACTION_TIMEOUT: (id: string) => string
ReadonlyUPDATE_CHANGES_REQUIRED: "Changes object required for update operation"
ReadonlyUPDATE_ID_FORBIDDEN: "Cannot update _id field"
ReadonlyUPDATE_MUST_SPECIFY_FIELD: "Update operation must specify at least one field to change"
ReadonlyUPDATE_NESTED_NOT_SUPPORTED: "Nested object updates not supported"