error_message#

Provides a module to customize exception messages.

Functions:

allowed_name_error_message([allowed_values, ...])

Provide an error message with the closest names matching the 'trial_name' from the 'allowed_values' list.

allowed_values_error(context, trial_name, ...)

Provide an error message for disallowed values.

closest_allowed_names(trial_name, allowed_names)

Checks if the 'trail_name' is closely matching the 'allowed_names'.

ansys.fluent.core.solver.error_message.allowed_name_error_message(allowed_values=None, context=None, trial_name=None, message=None, search_results=None)#

Provide an error message with the closest names matching the ‘trial_name’ from the ‘allowed_values’ list.

ansys.fluent.core.solver.error_message.allowed_values_error(context, trial_name, allowed_values)#

Provide an error message for disallowed values.

ansys.fluent.core.solver.error_message.closest_allowed_names(trial_name, allowed_names)#

Checks if the ‘trail_name’ is closely matching the ‘allowed_names’.