That depends on the quality of the code. I've seen codes that were so excellently written that every possible error was covered, which means that while there might be an error generated, something else in the code caught it before the error was actually generated, which would've caused the code to halt.
One possibility that I've seen (although I haven't worked with it myself, so far) is the ON ERROR event.