FluentMCPError#

exception ansys.fluent.mcp.common.errors.FluentMCPError(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 FluentMCPError

Attribute detail#

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

Method detail#

FluentMCPError.to_typed() → ansys.fluent.mcp.common.models.TypedError#

Convert the error into a typed error payload.

Returns:
TypedError

TypedError produced by the operation.