PPT Slide
- In traditional procedural programming languages, there were various ways of handling run-time errors.
- One way is to return some kind of value indicating whether the procedure succeeded or not.
public boolean someMethod( )
// if this method suceeded, return true
// otherwise return false
Note the blurring of the logical distinction between
procedures and functions… a bad engineering habit!
Exceptions--Traditional Methods