StalePreviewError#

exception ansys.mechanical.mcp.errors.StalePreviewError(message: str, *, details: dict[str, Any] | None = None)#

Bases: MechanicalMCPError

Raised when a property change preview is unknown, used, expired, or outdated.

Overview#

Import detail#

from ansys.mechanical.mcp.errors import StalePreviewError

Attribute detail#

StalePreviewError.error_code = 'stale_preview'#