ApiError#

exception ansys.rocky.app.api_element_item.ApiError#

Bases: RuntimeError

Exception class representing an error generated in the API layer.

ApiErrors should be raised for circumstances that are known to be user errors and not software bugs - things like trying to make a setup change without deleting results beforehand, trying to remove by name items that don’t exist, etc.

Import detail#

from ansys.rocky.app.api_element_item import ApiError