HPSError#

exception ansys.hps.client.exceptions.HPSError(*args, **kwargs)#

Provides the base class for all HPS-related errors.

This class derives from the requests.exceptions.RequestException base class.

Example:
>>> from ansys.hps.client import HPSError
>>> from ansys.hps.client.jms import Client
>>> try:
>>>     client = Client(url="https://127.0.0.1:8443/hps/",
                        username="repuser",
                        password="wrong_psw")
>>> except HPSError as e:
>>>     print(e)
401 Client Error: invalid_grant for: POST https://127.0.0.1:8443/hps/auth...
Invalid user credentials

Initialize RequestException with request and response objects.