Exception classes are provided for LightPFP-related errors.
- exception light_pfp_client.exceptions.ConcurrentUseDetected#
-
Bases:
Exception
- exception light_pfp_client.exceptions.LightPFPAPIError(msg: str, context: LightPFPAPIErrorContext)#
-
Bases:
Exception
The exception class raised when an error occurs within the LightPFP API.
- class light_pfp_client.exceptions.LightPFPAPIErrorContext(code: str, method: str, details: str, exc: Optional[Exception], metadata: Sequence[Tuple[str, str]], remote: str, time: datetime.datetime, notebook_id: str)#
-
Bases:
object
- code: str#
- details: str#
- exc: Optional[Exception]#
- format() str #
- metadata: Sequence[Tuple[str, str]]#
- method: str#
- notebook_id: str#
- remote: str#
- time: datetime#
- exception light_pfp_client.exceptions.MultiCalculatorUseDetected#
-
Bases:
Exception
- exception light_pfp_client.exceptions.RetriesExceeded(msg: str, context: LightPFPAPIErrorContext)#
-
Bases:
LightPFPAPIError
The exception class raised when the number of retries specified in the Estimator’s max_retries is exceeded.