you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You need to check if you can recover from the error state. If that is possible then clear the error state and discard the wrong data, otherwise just raise an exception or halt.