Skip to main content

Errors

All exceptions of the client are subclasses of APIError.

APIError​

from netzooe_eservice_api import APIError
class APIError(Exception)

Base error of the Netz OÖ eService API, e.g. for HTTP and connection errors.

APIError(message: str = '', /, *, status: int | HTTPStatus | None = None)

Parameters

  • message str (default: ''): Error message. Is replaced by the HTTP status description if a status is given, but is kept in detail, e.g. the response body.
  • status int | HTTPStatus | None (default: None): HTTP status associated with the error. Status codes that are not part of HTTPStatus are kept as int.

Attributes

  • message str
  • detail str
  • status int | HTTPStatus | None

InvalidJsonError​

from netzooe_eservice_api import InvalidJsonError
class InvalidJsonError(APIError)

The response of the eService portal is not valid JSON, e.g. the maintenance page.

AuthenticationError​

from netzooe_eservice_api import AuthenticationError
class AuthenticationError(APIError)

The credentials were rejected by the eService portal (HTTP 401).

Netz OÖNetz OÖLatest version on PyPI

An asynchronous Python client for the Netz Oberösterreich eService portal, used by the Home Assistant integration.

A community project, not affiliated with or endorsed by Netz Oberösterreich GmbH. Netz OÖ is a trademark of its owner.

Requires Python 3.13 or newer.

View source on GitHub
View known issues
Request a feature
View on PyPI
Changelog

Maintainer

@mh-superbox

On this page