com.imaginary.lwp
Class AuthenticationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.imaginary.lwp.LWPException
                    |
                    +--com.imaginary.lwp.AuthenticationException

public class AuthenticationException
extends LWPException

Represents a failure to authenticate. There are two scenarios which can cause an authentication failure:

You can find out which kind of failure this represents by checking the getType method.
Last modified $Date: 1999/10/06 03:19:10 $

Version:
$Revision: 1.2 $
Author:
George Reese (borg@imaginary.com)
See Also:
Serialized Form

Field Summary
static short CREDENTIAL
          Represents a credential-based failure.
static short SYSTEM
          Represents a system-based failure.
 
Constructor Summary
AuthenticationException()
          Constructs an authentication exception either for serialization or for the default credential-based exception.
AuthenticationException(java.lang.Exception cse)
          Constructs a system-based authentication exception caused by the specified exception.
AuthenticationException(java.lang.String rsn)
          Constructs an authentication exception having the specified message.
AuthenticationException(java.lang.String reason, java.lang.Exception cse)
          Constructs a system-based authentication exception caused by the specified exception.
AuthenticationException(java.lang.String rsn, short t)
          Constructs an authentication exception having the specified message.
 
Method Summary
 short getType()
           
 
Methods inherited from class com.imaginary.lwp.LWPException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREDENTIAL

public static final short CREDENTIAL
Represents a credential-based failure.

SYSTEM

public static final short SYSTEM
Represents a system-based failure.
Constructor Detail

AuthenticationException

public AuthenticationException()
Constructs an authentication exception either for serialization or for the default credential-based exception.

AuthenticationException

public AuthenticationException(java.lang.String rsn)
Constructs an authentication exception having the specified message. The authentication type is credential.
Parameters:
rsn - the reason for the exception

AuthenticationException

public AuthenticationException(java.lang.String rsn,
                               short t)
Constructs an authentication exception having the specified message. The authentication type is as specified.
Parameters:
rsn - the reason for the exception
t - the exception type

AuthenticationException

public AuthenticationException(java.lang.Exception cse)
Constructs a system-based authentication exception caused by the specified exception.
Parameters:
cse - the cause of the exception

AuthenticationException

public AuthenticationException(java.lang.String reason,
                               java.lang.Exception cse)
Constructs a system-based authentication exception caused by the specified exception.
Parameters:
reason - the reason for the exception
cse - the exception that caused this exception
Method Detail

getType

public short getType()
Returns:
the exception type