Exceptions#

exception postgrest.APIError#

Base exception for all API errors.

__init__(error: Dict[str, str]) None#
message: str | None#

The error message.

code: str | None#

The error code.

hint: str | None#

The error hint.

details: str | None#

The error details.

json() Dict[str, str]#

Convert the error into a dictionary.

Returns:

dict