The most recently thrown error, together with the continuation at that point, are stored in a pair of global variables:
error

error-continuation


Developer tools for inspecting these values are found in The debugger.