001    package org.hackystat.sensorshell.usermap;
002    
003    /**
004     * This class implements an exception that is thrown when using a SensorShellMap fails to 
005     * instantiate or otherwise does not work correctly.
006     * @author Burt Leung
007     * @version $Id: SensorShellMapException.java,v 1.1.1.1 2005/10/20 23:56:43 johnson Exp $
008     */
009    public class SensorShellMapException extends Exception {
010      
011      /** Generated serial UID. */
012      private static final long serialVersionUID = -2099926077899340572L;
013      
014      /**
015       * Thrown when exceptions occur during the use of a SensorShellMap instance.
016       * @param detailMessage A message describing the problem
017       */
018      public SensorShellMapException(String detailMessage) {
019        super(detailMessage);
020      }
021      
022      /**
023       * Thrown when exceptions occur during the use of a SensorShellMap instance.
024       * @param detailMessage A message describing the problem.
025       * @param error The previous error.
026       */
027      public SensorShellMapException(String detailMessage, Throwable error) {
028        super(detailMessage, error);
029      }
030      
031      /**
032       * Convert an exception to a SensorShellMapException.
033       * @param exception The exception to be converted
034       */
035      public SensorShellMapException(Exception exception) {
036        super(exception);
037      }
038    }