up previous next contents
Next: Objectives Up: Exceptions Previous: Exceptions   Contents

Introduction

  • Applications can run into many kinds of errors during execution.
  • Java exceptions provide a clean way to check for errors without cluttering code, and provide a mechanism to signal errors directly.
  • Exceptions are also part of a method's contract.
  • An exception is thrown when an unexpected error condition is encountered.
  • The exception is then caught be an encompassing clause further up the method invocation stack.


up previous next contents
Next: Objectives Up: Exceptions Previous: Exceptions   Contents