I am interesting in knowing some other approaches to error handling in programming languages other than try/catch and its variations.
Does anyone know some interesting cases of such an error handling?
Well, there's also good old
ON ERROR RESUME NEXT
Also, some programming languages (some Lisps and Schemes, maybe Smalltalk) separate raising an exception from escaping (ie, unwinding the stack). That is, it's possible in some circumstances to handle an exception in the context where it is raised and continue computation---these are called continuable exceptions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With