Is exception handling useful in
compile time errors
logical errors
and even runtime errors?
sharathg.satya
-10
Posting Whiz in Training
Recommended Answers
Jump to PostException handling is not useful for compile-time errors.
It should NOT be used for logic errors.
It should be used for runtime errors where something is completely out of your control.
Jump to PostIt would be MUCH better to test for zero and not divide by it than to let an exception occur. If you can predict it or prevent it, do so with code.
Exception processing is costly if your program is to continue running (doesn't just exit on the first …
All 6 Replies
thines01
401
Postaholic
Team Colleague
Featured Poster
codeorder
commented:
As a vb.noob, .i completely Agree.:)
+12
sharathg.satya
-10
Posting Whiz in Training
thines01
401
Postaholic
Team Colleague
Featured Poster
sharathg.satya
-10
Posting Whiz in Training
codeorder
197
Nearly a Posting Virtuoso
sharathg.satya
-10
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.