exceptions¶
The exceptions for the library.
All the exceptions are accessible through the package root namespace.
All of the exceptions are subclasses of FilingsAPIError
or
FilingsAPIWarning
. This includes APIError
.
Exception APIError
is defined separately in module
api_error
due to also being a subclass of APIObject
.
Exceptions
Base class for exceptions in this library. |
|
Base class for warnings in this library. |
|
SHA-256 checksum does not match expected value from API. |
|
The file contains a database whose schema is non-conformant. |
|
No APIError but the HTTP status is not 200. |
|
The API returns a JSON:API document in bad format. |
|
Used filter is not supported but can be used. |
- exception xbrl_filings_api.exceptions.FilingsAPIError¶
Bases:
Exception
Base class for exceptions in this library.
Not to be confused with
APIError
which is a subclass of this class representing an error returned by JSON:API.
- exception xbrl_filings_api.exceptions.FilingsAPIWarning¶
Bases:
UserWarning
Base class for warnings in this library.
- exception xbrl_filings_api.exceptions.CorruptDownloadError¶
Bases:
FilingsAPIError
SHA-256 checksum does not match expected value from API.
See also
downloader.CorruptDownloadError
Not FilingsAPIError subclassed.
- expected_hash: str¶
Expected SHA-256 checksum of the file in lowercase hex.
Originates from
Filing
attributepackage_sha256
.
- exception xbrl_filings_api.exceptions.DatabaseSchemaUnmatchError¶
Bases:
FilingsAPIError
The file contains a database whose schema is non-conformant.
Either none of the expected tables are present or none of the expected columns for a matching table.
- exception xbrl_filings_api.exceptions.HTTPStatusError¶
Bases:
FilingsAPIError
No APIError but the HTTP status is not 200.
- exception xbrl_filings_api.exceptions.JSONAPIFormatError¶
Bases:
FilingsAPIError
The API returns a JSON:API document in bad format.
- exception xbrl_filings_api.exceptions.FilterNotSupportedWarning¶
Bases:
FilingsAPIWarning
Used filter is not supported but can be used.