Client
Error Handling
The SDK defines custom exceptions to handle API errors.
The SDK defines custom exceptions to handle API errors.
perseus_client.exceptions.T2GException: The base exception for all API-related errors.perseus_client.exceptions.APIError: Raised for general API errors.perseus_client.exceptions.AuthenticationError: Raised for authentication-related errors (e.g., invalid API key).perseus_client.exceptions.JobError: Raised when a job fails.
Recommendation
It is recommended to wrap your API calls in a try...except block to handle
these exceptions.