ConfigurationException.java

  1. package gov.usgs.earthquake.distribution;

  2. /**
  3.  * A configuration exception, thrown while loading the config file if there are
  4.  * problems.
  5.  */
  6. public class ConfigurationException extends Exception {

  7.     private static final long serialVersionUID = 1L;

  8.     /**
  9.      * Construct a configuration exception with only a string describing the
  10.      * error.
  11.      *
  12.      * @param message
  13.      *            description of the error (and possibly, solution).
  14.      */
  15.     public ConfigurationException(final String message) {
  16.         super(message);
  17.     }

  18.     /**
  19.      * Construct a configuration exception with a string describing the error,
  20.      * and an exception that was caught that led to the problem.
  21.      *
  22.      * @param message
  23.      *            description of the error (and possibly, solution).
  24.      * @param cause
  25.      *            exception that led to problem
  26.      */
  27.     public ConfigurationException(final String message, final Exception cause) {
  28.         super(message, cause);
  29.     }

  30. }