NotificationListenerException.java

  1. package gov.usgs.earthquake.distribution;

  2. /**
  3.  * An exception thrown by a NotificationListener when it cannot process a
  4.  * product.
  5.  */
  6. public class NotificationListenerException extends Exception {

  7.     private static final long serialVersionUID = 1L;

  8.     /**
  9.      * NotificationListener exception only taking a message
  10.      * @param message String
  11.      */
  12.     public NotificationListenerException(final String message) {
  13.         super(message);
  14.     }

  15.     /**
  16.      * NotificationListener exception taking a message and cause
  17.      * @param message String
  18.      * @param cause Exception that occured
  19.      */
  20.     public NotificationListenerException(final String message,
  21.             final Exception cause) {
  22.         super(message, cause);
  23.     }

  24.         /**
  25.      * NotificationListener exception only taking a throwable cause
  26.      * @param cause Throwable
  27.      */
  28.     public NotificationListenerException(final Throwable cause) {
  29.         super(cause);
  30.     }

  31. }