Skip to main content

fmt_py_err

No overview available.

def fmt_py_err(
exc: Exception
) - > string

Formats a Python exception and its traceback into a human-readable string for logging or display purposes.

Parameters

NameTypeDescription
excExceptionThe exception object to be formatted.

Returns

TypeDescription
stringA formatted string containing the exception type, message, and the full traceback information.