- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.tentackle.common.TentackleRuntimeException
-
- org.tentackle.session.PersistenceException
-
- org.tentackle.session.LoginFailedException
-
- org.tentackle.session.AlreadyLoggedInException
-
- All Implemented Interfaces:
java.io.Serializable,org.tentackle.log.Loggable
public class AlreadyLoggedInException extends LoginFailedException
Exception thrown if the user is already logged in.
Usually for appservers that don't allow a user logged in more than once.- Author:
- harald
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.tentackle.session.PersistenceException
END_INFO, START_INFO
-
-
Constructor Summary
Constructors Constructor Description AlreadyLoggedInException(Session session, SessionInfo loginInfo)Creates anAlreadyLoggedInException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionInfogetLoginInfo()Gets the application user info.java.lang.StringgetMessage()-
Methods inherited from class org.tentackle.session.LoginFailedException
getLogLevel
-
Methods inherited from class org.tentackle.session.PersistenceException
createFromRemoteException, extractPersistenceException, getIdentifiable, getSession, setIdentifiable, setSession, updateDbObject
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AlreadyLoggedInException
public AlreadyLoggedInException(Session session, SessionInfo loginInfo)
Creates anAlreadyLoggedInException.- Parameters:
session- the sessionloginInfo- the application user info
-
-
Method Detail
-
getLoginInfo
public SessionInfo getLoginInfo()
Gets the application user info.- Returns:
- the user info
-
getMessage
public java.lang.String getMessage()
Overridden due to localized message.
- Overrides:
getMessagein classPersistenceException
-
-