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 description of exception.
  15.    */
  16.   public ProductAlreadyInStorageException(String message) {
  17.     super(message);
  18.   }

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

  28. }