Skip to main content

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

NameTypeDescription
fncallableThe function to be decorated and monitored for exceptions.

Returns

TypeDescription
functionA wrapped version of the input function that performs error logging and state updates during execution.