Errors
pypricecharting.error
PriceChartingError
Bases: Exception
Base class for all PriceCharting errors
ParameterError
Bases: PriceChartingError, ValueError
Raised when an API method is called with invalid parameters
Raised before any request is sent.
APIError
Bases: PriceChartingError
Raised when the API returns an error response
Attributes:
| Name | Type | Description |
|---|---|---|
message |
The API's |
|
status_code |
The HTTP status code of the response. |
__init__(message, status_code)
Store the API error message and HTTP status code.