Strategy Elements

Jakob Jenkov
Last update: 2014-05-26

An exception handling strategy typically consists of the following elements:

  1. Error detection
  2. Error information gathering
  3. Throwing the exception
  4. Propagating the exception, possibly adding context information to it.
  5. Catching and reacting to the exception:
    • Retrying the action, if possible.
    • Notifying relevant parties.

I will talk a bit about each of these elements in the following pages.

Jakob Jenkov

Featured Videos

Java Generics

Java ForkJoinPool

P2P Networks Introduction



















Close TOC
All Tutorial Trails
All Trails
Table of contents (TOC) for this tutorial trail
Trail TOC
Table of contents (TOC) for this tutorial
Page TOC
Previous tutorial in this tutorial trail
Previous
Next tutorial in this tutorial trail
Next