ContinuableListenerException.java

  1. package gov.usgs.earthquake.distribution;

  2. /**
  3.  * Wrapper exception class. This is thrown by NotificationListeners from the
  4.  * <code>onNotification</code> method. This exception exists only so we can
  5.  * identify the type of exception and attempt to resubmit a failed notification
  6.  * for indexing.
  7.  *
  8.  * @author emartinez
  9.  *
  10.  */
  11. public class ContinuableListenerException extends Exception {

  12.     private static final long serialVersionUID = 0x256D2BEL;

  13.     /**
  14.      * Wrapper for exception. Takes message
  15.      * @param message string
  16.      */
  17.     public ContinuableListenerException(String message) {
  18.         super(message);
  19.     }

  20.     /**
  21.      * Wrapper for exception. Takes cause
  22.      * @param cause throwable
  23.      */
  24.     public ContinuableListenerException(Throwable cause) {
  25.         super(cause);
  26.     }

  27.     /**
  28.      * Wrapper for exception. Takes message and cause
  29.      * @param message string
  30.      * @param cause throwable
  31.      */
  32.     public ContinuableListenerException(String message, Throwable cause) {
  33.         super(message, cause);
  34.     }

  35. }