pyportall.exceptions
PyPortall custom exceptions.
AuthError
Authentication has failed, probably because of a wrong API key.
BatchError
A batch request has failed, because of an error or because the batch timeout has expired.
PreFlightException
Raised in preflight mode, includes the number of estimated credits that the actual request would consume.
__init__(self, credits, *args)
special
Constructor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credits |
|
Number of credits the request will cost. |
required |
PyPortallException
Generic API exception.
RateLimitError
The request cannot be fulfilled because either the company credit has run out or the maximum number of allowed requests per second has been exceeded.
TimeoutError
A regular (non-batch) request has timed out.
ValidationError
API is complaining the format of the request is not valid.