check_errors
Wraps a function to capture exception information, updating global error state and tracking the source filename before re-raising the exception.
def check_errors(
fn: callable
) - > function
Wraps a function to capture exception details, including the source filename, and updates global error tracking state before re-raising the exception.
Parameters
| Name | Type | Description |
|---|---|---|
| fn | callable | The function to be decorated and monitored for exceptions. |
Returns
| Type | Description |
|---|---|
function | A wrapped version of the input function that performs error logging and state updates during execution. |