Exceptions¶
Infisical HTTPX SDK Exceptions.
InfisicalCredentialsError
¶
InfisicalHTTPError
¶
Bases: Exception
Infisical API HTTP Error.
Source code in src/infisical/exceptions.py
__init__
¶
__init__(err_json: dict) -> None
Initialize the Infisical HTTP error.
Parses the message, statusCode, optional details, and the error type from
the error JSON response and formats them into a more detailed Exception.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
err_json
|
dict
|
The error JSON response from the server. |
required |
Source code in src/infisical/exceptions.py
__err_type__
¶
Return the error type based on the status code.
This provides more context in the exception that's raised by specifying
if it's a Client Error or Server Error based on status code.
Returns:
| Type | Description |
|---|---|
str
|
The error type. Specifically, |