chore: move dependencies, add more tests
This commit is contained in:
10
src/bibapi/schemas/errors.py
Normal file
10
src/bibapi/schemas/errors.py
Normal file
@@ -0,0 +1,10 @@
|
||||
class BibAPIError(Exception):
|
||||
"""Base class for all BibAPI errors."""
|
||||
|
||||
|
||||
class CatalogueError(BibAPIError):
|
||||
"""Raised when there is an error with the library catalogue API."""
|
||||
|
||||
|
||||
class NetworkError(BibAPIError):
|
||||
"""Raised when there is a network-related error."""
|
||||
Reference in New Issue
Block a user