:class:`StalePreviewError` ========================== .. py:exception:: ansys.mechanical.mcp.errors.StalePreviewError(message: str, *, details: dict[str, Any] | None = None) Bases: :py:obj:`MechanicalMCPError` Raised when a property change preview is unknown, used, expired, or outdated. .. !! processed by numpydoc !! .. py:currentmodule:: StalePreviewError Overview -------- .. tab-set:: .. tab-item:: Attributes .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~error_code` - Import detail ------------- .. code-block:: python from ansys.mechanical.mcp.errors import StalePreviewError Attribute detail ---------------- .. py:attribute:: error_code :value: 'stale_preview'