:class:`FluidsMCPError` ======================= .. py:exception:: ansys.cfx.mcp.common.errors.FluidsMCPError(message: str, *, details: dict[str, Any] | None = None) Bases: :py:obj:`Exception` Base class for typed errors raised by leaves and backends. .. !! processed by numpydoc !! .. py:currentmodule:: FluidsMCPError Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~to_typed` - Convert this domain error into the shared typed-error response model. .. tab-item:: Attributes .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~error_code` - * - :py:attr:`~message` - * - :py:attr:`~details` - Import detail ------------- .. code-block:: python from ansys.cfx.mcp.common.errors import FluidsMCPError Attribute detail ---------------- .. py:attribute:: error_code :value: 'internal_error' .. py:attribute:: message .. py:attribute:: details Method detail ------------- .. py:method:: to_typed() -> ansys.cfx.mcp.common.models.TypedError Convert this domain error into the shared typed-error response model. :Returns: :obj:`TypedError` Value computed by the helper for the requested CFX workflow. .. !! processed by numpydoc !!