onRecoverData

Function to recover data from the error.

You can recover data from the error instead of the error state.