FluidsMCPError#

exception ansys.fluent.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 the error into a typed error payload.

Import detail#

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

Attribute detail#

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

Method detail#

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

Convert the error into a typed error payload.

Returns:
TypedError

TypedError produced by the operation.