FluidsMCPError#

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

Bases: Exception

Base class for typed errors raised by leaves and backends.

Overview#

to_typed

Convert this domain error into the shared typed-error response model.

Import detail#

from ansys.cfx.mcp.common.errors import FluidsMCPError

Attribute detail#

FluidsMCPError.error_code = 'internal_error'#
FluidsMCPError.message#
FluidsMCPError.details#

Method detail#

FluidsMCPError.to_typed() ansys.cfx.mcp.common.models.TypedError#

Convert this domain error into the shared typed-error response model.

Returns:
TypedError

Value computed by the helper for the requested CFX workflow.