CS202 Java-143
Exception Handling
lHandling errors is always a difficult problem
•Many times we ignore error handling
•Think back to your 162 project where this was important? What did it do to your design?
•A major problem with most error handling schemes is that they rely on the programmer’s vigilance and an agreed upon convention ahead of time – which may not be enforced by the language
lException handling in Java is handled directly as part of the language
•And, you are forced to use it to get anywhere
•If you don’t write your code to properly handle exceptions, you will get error messages!
•This consistency makes error handling easier
lSide note: Error handling is not an object oreiented feature!