MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleOCR / APIError

Class APIError

paddleocr/_api_client/errors.py:32–37  ·  view source on GitHub ↗

Non-2xx response from the API server.

Source from the content-addressed store, hash-verified

30
31
32class APIError(PaddleOCRAPIError):
33 """Non-2xx response from the API server."""
34
35 def __init__(self, status_code: int, message: str):
36 self.status_code = status_code
37 super().__init__(f"HTTP {status_code}: {message}")
38
39
40class RateLimitError(APIError):

Callers 2

raise_for_statusFunction · 0.70
unwrap_api_responseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected