Skip to content

Commit 1a3f5f4

Browse files
author
Gerit Wagner
committed
initial import
1 parent 5c55491 commit 1a3f5f4

28 files changed

+729
-4
lines changed

docs/generate_indices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def generate_rst_file(error: QueryErrorCode) -> None:
4545
"",
4646
f"**Message**: ``{error.message}``",
4747
"",
48-
f"**Scope**: {', '.join(error.scope)}",
48+
f"**Scope**: {', '.join(str(e) for e in error.scope)}",
4949
"",
5050
error.docs.strip()
5151
if error.docs.strip()

docs/source/messages/E0004.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _E0004:
2+
3+
E0004 — invalid-character
4+
=========================
5+
6+
**Error Code**: E0004
7+
8+
**Message**: ``Search term contains invalid character``
9+
10+
**Scope**: PLATFORM.PUBMED
11+
12+
**Description**: Search term contains invalid character
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/E0005.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _E0005:
2+
3+
E0005 — query-starts-with-platform-identifier
4+
=============================================
5+
6+
**Error Code**: E0005
7+
8+
**Message**: ``Query starts with platform identifier``
9+
10+
**Scope**: PLATFORM.WOS
11+
12+
**Description**: Query starts with platform identifier
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/E0006.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _E0006:
2+
3+
E0006 — query-in-quotes
4+
=======================
5+
6+
**Error Code**: E0006
7+
8+
**Message**: ``The whole Search string is in quotes.``
9+
10+
**Scope**: PLATFORM.WOS
11+
12+
**Description**: The whole Search string is in quotes.
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/F0002.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ F0002 — unbalanced-parentheses
99

1010
**Scope**: all
1111

12-
**Description**: Unbalanced parentheses
13-
1412
**Typical fix**: Check the parentheses in the query
1513

1614
**Problematic query**:

docs/source/messages/F0004.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _F0004:
2+
3+
F0004 — invalid-operator-position
4+
=================================
5+
6+
**Error Code**: F0004
7+
8+
**Message**: ``Invalid operator position``
9+
10+
**Scope**: PLATFORM.PUBMED
11+
12+
**Description**: Invalid operator position
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/F0005.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _F0005:
2+
3+
F0005 — invalid-search-field-position
4+
=====================================
5+
6+
**Error Code**: F0005
7+
8+
**Message**: ``Search field tags should directly follow search terms``
9+
10+
**Scope**: PLATFORM.PUBMED
11+
12+
**Description**: Search field tags should directly follow search terms
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/F0006.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _F0006:
2+
3+
F0006 — nested-not-query
4+
========================
5+
6+
**Error Code**: F0006
7+
8+
**Message**: ``Nesting of NOT operator is not supported for this database``
9+
10+
**Scope**: PLATFORM.PUBMED
11+
12+
**Description**: Nesting of NOT operator is not supported for this database
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/F0007.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _F0007:
2+
3+
F0007 — empty-parentheses
4+
=========================
5+
6+
**Error Code**: F0007
7+
8+
**Message**: ``Query contains empty parentheses``
9+
10+
**Scope**: PLATFORM.PUBMED
11+
12+
**Description**: Query contains empty parentheses
13+
14+
**Back to**: :ref:`query-error-messages`

docs/source/messages/F1001.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. _F1001:
2+
3+
F1001 — wildcard-in-year
4+
========================
5+
6+
**Error Code**: F1001
7+
8+
**Message**: ``Wildcard characters (*, ?, $) not supported in year search.``
9+
10+
**Scope**: PLATFORM.WOS
11+
12+
**Typical fix**: Replace with year range.
13+
14+
**Problematic query**:
15+
16+
.. code-block:: python
17+
18+
A AND year=201*
19+
20+
**Correct query**:
21+
22+
.. code-block:: python
23+
24+
A AND (year >= 2010 AND year < 2020)
25+
26+
**Back to**: :ref:`query-error-messages`

0 commit comments

Comments
 (0)