Skip to main content

py_err_string

No overview available.

def py_err_string(
py: Python,
err: PyErr
) - > string

Generates a formatted error message string from the current Python exception state, including the exception type and value.

Returns

TypeDescription
stringA formatted string containing the exception class name and the error message, or a default message if no exception is active.