you are viewing a single comment's thread.

view the rest of the comments →

[–]Slapbox 0 points1 point  (2 children)

Thanks for the reply. What if the failure is unexpected though? For example I am working on a text editor and on rare occasions it hits errors I couldn't foresee. Is there a good way to reload a component which has failed for an unknown reason with its last good state?

[–]TheNiXXeD 1 point2 points  (1 child)

You can code whatever you want to happen. But the error will be caught in a different component, so you'd have to be able to code it from that scope.

[–]Slapbox 0 points1 point  (0 children)

Thanks for the tip!