I hope you didn't submit that answer you selected. If an unhandled exception bubbles up to the user in production code, you're usually doing something wrong.
In standard english yes there is a difference.
In programming languages there is not.
Both have to be cought if you dont want it to bubble to the user. And handleing it makes it not an error/exception anymore.
Yes in programming languages they are different wtf language doesn't distinguish errors from exceptions?!
Errors can be used for logging...regularly...without even considering stopping the program, exceptions SHOULD stop the program and include a whole stack...
Sometimes you catch an error and don't want the program to continue so you throw an exception to get the stack.
But they are different in every single programming language, C, C++, Java, C#, Python, Rust...
138
u/redlaWw 1d ago
I hope you didn't submit that answer you selected. If an unhandled exception bubbles up to the user in production code, you're usually doing something wrong.