com.flexive.shared.exceptions
Class FxLoginFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by javax.security.auth.login.LoginException
                  extended by com.flexive.shared.exceptions.FxLoginFailedException
All Implemented Interfaces:
java.io.Serializable

public class FxLoginFailedException
extends javax.security.auth.login.LoginException

Exception that is thrown when a login fails. This is the only exception that does not extend FxException since it is used in the JAAS login module. Localization is performed in the struts action classes using the type

Version:
$Rev: 462 $
Author:
Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
static byte TYPE_INACTIVE_ACCOUNT
           
static byte TYPE_SQL_ERROR
           
static byte TYPE_UNKNOWN_ERROR
           
static byte TYPE_USER_OR_PASSWORD_NOT_DEFINED
           
 
Constructor Summary
FxLoginFailedException(java.lang.String msg, byte type)
          Constructor.
 
Method Summary
 byte getType()
          Returns the type, may be TYPE_INACTIVE_ACCOUNT or TYPE_USER_OR_PASSWORD_NOT_DEFINED.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_USER_OR_PASSWORD_NOT_DEFINED

public static final byte TYPE_USER_OR_PASSWORD_NOT_DEFINED
See Also:
Constant Field Values

TYPE_INACTIVE_ACCOUNT

public static final byte TYPE_INACTIVE_ACCOUNT
See Also:
Constant Field Values

TYPE_UNKNOWN_ERROR

public static final byte TYPE_UNKNOWN_ERROR
See Also:
Constant Field Values

TYPE_SQL_ERROR

public static final byte TYPE_SQL_ERROR
See Also:
Constant Field Values
Constructor Detail

FxLoginFailedException

public FxLoginFailedException(java.lang.String msg,
                              byte type)
Constructor.

Parameters:
msg - the message for the exception
type - the type, may be TYPE_INACTIVE_ACCOUNT or TYPE_USER_OR_PASSWORD_NOT_DEFINED
Method Detail

getType

public byte getType()
Returns the type, may be TYPE_INACTIVE_ACCOUNT or TYPE_USER_OR_PASSWORD_NOT_DEFINED.

Returns:
the type, may be TYPE_INACTIVE_ACCOUNT or TYPE_USER_OR_PASSWORD_NOT_DEFINED