Intermediate commit
This commit is contained in:
parent
0e9e49df16
commit
3d4cfeff1a
65 changed files with 5507 additions and 333 deletions
13
app/services/domains/arxiv/errors.py
Normal file
13
app/services/domains/arxiv/errors.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from __future__ import annotations
|
||||
|
||||
|
||||
class ArxivRateLimitError(Exception):
|
||||
"""arXiv returned 429 or cooldown is active."""
|
||||
|
||||
|
||||
class ArxivClientValidationError(ValueError):
|
||||
"""arXiv client inputs are invalid."""
|
||||
|
||||
|
||||
class ArxivParseError(ValueError):
|
||||
"""arXiv API payload could not be parsed."""
|
||||
Loading…
Add table
Add a link
Reference in a new issue