ProductAlreadyInStorageException.java

  1. /*
  2.  * StorageException
  3.  */
  4. package gov.usgs.earthquake.distribution;

  5. /**
  6.  * An exception thrown when storing a product already in storage.
  7.  */
  8. public class ProductAlreadyInStorageException extends Exception {

  9.     /** Serial version UID. */
  10.     private static final long serialVersionUID = 1L;

  11.     /**
  12.      * Construct a new StorageException object.
  13.      *
  14.      * @param message
  15.      *            description of exception.
  16.      */
  17.     public ProductAlreadyInStorageException(String message) {
  18.         super(message);
  19.     }

  20.     /**
  21.      * Construct a new StorageException object.
  22.      *
  23.      * @param message
  24.      *            description of exception
  25.      * @param cause
  26.      *            the exception that caused this exception.
  27.      */
  28.     public ProductAlreadyInStorageException(String message, Throwable cause) {
  29.         super(message, cause);
  30.     }

  31. }