Exception classes are provided for PFP-related errors.
- pfp_api_client.exception.PFCCError#
-
alias of
PFPAPIError
- exception pfp_api_client.exception.PFPAPIError(msg: str, context: PFPAPIErrorContext)#
-
Bases:
Exception
The exception class raised when an error occurs within the PFP API.
- class pfp_api_client.exception.PFPAPIErrorContext(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 pfp_api_client.exception.RetriesExceeded(msg: str, context: PFPAPIErrorContext)#
-
Bases:
PFPAPIError
The exception class raised when the number of retries specified in the Estimator’s max_retries is exceeded.