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:
ExceptionBase class for exceptions in this library.
Not to be confused with
APIErrorwhich is a subclass of this class representing an error returned by JSON:API.
- exception xbrl_filings_api.exceptions.FilingsAPIWarning¶
Bases:
UserWarningBase class for warnings in this library.
- exception xbrl_filings_api.exceptions.CorruptDownloadError¶
Bases:
FilingsAPIErrorSHA-256 checksum does not match expected value from API.
See also
downloader.CorruptDownloadErrorNot FilingsAPIError subclassed.
- expected_hash: str¶
Expected SHA-256 checksum of the file in lowercase hex.
Originates from
Filingattributepackage_sha256.
- exception xbrl_filings_api.exceptions.DatabaseSchemaUnmatchError¶
Bases:
FilingsAPIErrorThe 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:
FilingsAPIErrorNo APIError but the HTTP status is not 200.
- exception xbrl_filings_api.exceptions.JSONAPIFormatError¶
Bases:
FilingsAPIErrorThe API returns a JSON:API document in bad format.
- exception xbrl_filings_api.exceptions.FilterNotSupportedWarning¶
Bases:
FilingsAPIWarningUsed filter is not supported but can be used.