Exceptions#

HTTP requests returning an unsuccessful status code raise one of these exceptions:

  • ansys.hps.client.ClientError for client errors (4xx status code), such as for included bad syntax or not found.

  • ansys.hps.client.APIError for server errors (5xx status code), such as for internal server errors or not implemented.

All exceptions that a PyHPS client explicitly raises are inherited from the ansys.hps.client.HPSError base class.

HPSError(*args, **kwargs)

Provides the base class for all HPS-related errors.

APIError(*args, **kwargs)

Provides server-side related errors.

ClientError(*args, **kwargs)

Provides client-side related errors.