001    package com.sptci.system;
002    
003    /**
004     * A custom exception that is used to indicate that the user
005     * could not login successfully to the <code>telnet</code> server.
006     *
007     * <p>&copy; Copyright 2007 Sans Pareil Technologies, Inc.</p>
008     * @author Rakesh Vidyadharan 2007-04-21
009     * @version $Id: AuthenticationFailedException.java 3102 2007-04-23 00:55:15Z rakesh $
010     */
011    public class AuthenticationFailedException extends Exception
012    {
013      /**
014       * Constructs a new exception with null as its detail message. The 
015       * cause is not initialized, and may subsequently be initialized by 
016       * a call to Throwable.initCause(java.lang.Throwable).  Just uses
017       * the super-class constructor.
018       */
019      public AuthenticationFailedException()
020      {
021        super();
022      }
023    
024      /**
025       * Constructs a new exception with the specified detail message. The 
026       * cause is not initialized, and may subsequently be initialized by 
027       * a call to Throwable.initCause(java.lang.Throwable).  Just calls
028       * the corresponding super-class constructor.
029       *
030       * @param message The detail message. The detail message is 
031       *   saved for later retrieval by the Throwable.getMessage() method.
032       */
033      public AuthenticationFailedException( String message )
034      {
035        super( message );
036      }
037    
038      /**
039       * Constructs a new exception with the specified detail message and 
040       * cause.  Just uses the appropriate super-class constructor.
041       *
042       * <p>Note that the detail message associated with cause is not 
043       * automatically incorporated in this exception's detail message.</p>
044       *
045       * @param message The detail message. The detail message is 
046       *   saved for later retrieval by the Throwable.getMessage() method.
047       * @param cause The cause (which is saved for later 
048       *   retrieval by the Throwable.getCause() method). (A null value is 
049       *   permitted, and indicates that the cause is nonexistent or 
050       *   unknown.)
051       */
052      public AuthenticationFailedException( String message, Throwable cause )
053      {
054        super( message, cause );
055      }
056    
057      /**
058       * Constructs a new exception with the specified cause. The detail 
059       * message is set as <code>( cause==null ? null : cause.toString() )
060       * </code> (which typically contains the class and detail message of 
061       * cause).  This constructor is useful for exceptions that are little 
062       * more than wrappers for other throwables (for example, 
063       * PrivilegedActionException).  Just uses the appropriate super-class
064       * constructor.
065       *
066       * @param cause The cause (which is saved for later 
067       *   retrieval by the Throwable.getCause() method). (A null value is 
068       *   permitted, and indicates that the cause is nonexistent or 
069       *   unknown.)
070       */
071      public AuthenticationFailedException( Throwable cause )
072      {
073        super( cause );
074      }
075    }