001    package com.sptci.prevayler;
002    
003    /**
004     * A custom exception used to indicate errors while interacting with the
005     * prevalent system.
006     *
007     * <p>Copyright 2008, <a href='http://sptci.com/' target='_top'>Sans Pareil Technologies, Inc.</a></p>
008     * @author Rakesh Vidyadharan 2008-05-22
009     * @version $Id: PrevalentException.java 4345 2008-06-30 21:22:03Z rakesh $
010     */
011    public class PrevalentException extends Exception
012    {
013      private static final long serialVersionUID = 1L;
014    
015      /**
016       * Default constructor.  Create a new exception with a <code>null</code>
017       * message.
018       */
019      public PrevalentException()
020      {
021        super();
022      }
023    
024      /**
025       * Create a new exception with the specified message.
026       *
027       * @param message The message that describes the problem.
028       */
029      public PrevalentException( final String message )
030      {
031        super( message );
032      }
033    
034      /**
035       * Create a new exception with instance of {@link java.lang.Throwable}
036       * that caused the problem.
037       *
038       * @param throwable The exception that caused this instance of the exception
039       *   to be thrown.
040       */
041      public PrevalentException( final Throwable throwable )
042      {
043        super( throwable );
044      }
045    
046      /**
047       * Create a new exception with the specified message and instance of
048       * {@link java.lang.Throwable} that caused the problem.
049       *
050       * @param message The message that describes the problem.
051       * @param throwable The exception that caused this instance of the exception
052       *   to be thrown.
053       */
054      public PrevalentException( final String message, final Throwable throwable )
055      {
056        super( message, throwable );
057      }
058    }