4 ms·
try / catch replaces that today
by ipaddr 4y ago
try / catch replaces that today
- Sohcahtoa82 4y agotry / catch is almost he opposite of On Error Resume Next OERN would make it so uncaught errors were silently ignored and execution would just continue on the next line as if nothing wrong happened. This would likely result in more errors, which would then also be ignored.
- ptx 4y agoFrustratingly, the "on error goto" mechanism in Visual Basic is basically try/catch, except that the error object doesn't give you any kind of stack trace (not even the procedure or line number where the error occurred) so you have to constantly catch and rethrow errors just to add context information.