FileDocCategorySizeDatePackage
AuthenticationException.javaAPI DocExample2333Mon Apr 03 19:33:46 BST 2000com.imaginary.lwp

AuthenticationException

public class AuthenticationException extends Exception
Represents a failure to authenticate. There are two scenarios which can cause an authentication failure:
  • Invalid credentials
  • System 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)

Fields Summary
public static final short
CREDENTIAL
Represents a credential-based failure.
public static final short
SYSTEM
Represents a system-based failure.
private short
type
The failure type.
Constructors Summary
public AuthenticationException()
Constructs an authentication exception either for serialization or for the default credential-based exception.

    
                      
      
        super();
    
public AuthenticationException(String rsn)
Constructs an authentication exception having the specified message. The authentication type is credential.

param
rsn the reason for the exception

        super(rsn);
    
public AuthenticationException(String rsn, short t)
Constructs an authentication exception having the specified message. The authentication type is as specified.

param
rsn the reason for the exception
param
t the exception type

        super(rsn);
        type = t;
    
public AuthenticationException(Exception cse)
Constructs a system-based authentication exception caused by the specified exception.

param
cse the cause of the exception

        super(cse.getMessage());
        type = SYSTEM;
    
public AuthenticationException(String reason, Exception cse)
Constructs a system-based authentication exception caused by the specified exception.

param
reason the reason for the exception
param
cse the exception that caused this exception

        super(reason);
        type = SYSTEM;
    
Methods Summary
public shortgetType()

return
the exception type

        return type;