PPT Slide
public void someMethod( ) {
// do someMethod’s stuff here
// if there is an error, then set iErrorValue = 1
public void someOtherMethod( ) {
// do someOtherMethod’s stuff here
// if there is an error, then set iErrorValue = 2
public void someThirdMethod( ) {
// do someThirdMethod’s stuff here
// if there is an error, then set iErrorValue = 3
- Another way error handling is to have the value of a global variable represent the error.
Exceptions--Global Variables