Docs › Exposed operator and service namespaces › onesim.physics.heat_transfer.errors
C.6 onesim.physics.heat_transfer.errors
from onesim.physics.heat_transfer import errors
diagnostic_for function
diagnostic_for(message: str, *, field: str | None = None) -> ThermalDiagnostic
Map a public validation/execution message to its stable error code.
ThermalConfigurationError class
ThermalConfigurationError(diagnostics: Iterable[ThermalDiagnostic]) -> None
Raised by the public execution boundary with structured diagnostics.
ThermalDiagnostic class
ThermalDiagnostic(code: ThermalErrorCode, message: str, field: str | None = None, hint: str | None = None) -> None
A thermal diagnostic with code, message and optional field and hint.
Selected methods.
to_mapping() -> dict[str, str]
Return code and message, plus non-None field and hint values.
ThermalErrorCode class
ThermalErrorCode(*values)
Stable identifiers for public thermal configuration and execution diagnostics.