java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tentackle.common.TentackleRuntimeException
org.tentackle.session.PersistenceException
org.tentackle.session.LoginFailedException
- All Implemented Interfaces:
Serializable
,Loggable
- Direct Known Subclasses:
AlreadyLoggedInException
,VersionIncompatibleException
RMI servers should throw a LoginFailedException if authentication fails (or
any other reason)
- Author:
- harald
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new login failed exception without a session and withnull
as its detail message.LoginFailedException
(String message) Constructs a new login failed exception without a session with the specified detail message.LoginFailedException
(String message, Throwable cause) Constructs a new login failed exception without a session with the specified detail message and cause.LoginFailedException
(Identifiable object) Constructs a new login failed exception for a given identifiable.LoginFailedException
(Identifiable object, String message) Constructs a new login failed exception for a given session with the specified detail message.LoginFailedException
(Identifiable object, String message, Throwable cause) Constructs a new login failed exception for a given session with the specified detail message and cause.LoginFailedException
(Identifiable object, Throwable cause) Constructs a new login failed exception for a given session with the specified cause and a detail message of(cause==null ?
LoginFailedException
(Session session) Constructs a new login failed exception for a given session withnull
as its detail message.LoginFailedException
(Session session, String message) Constructs a new login failed exception for a given session with the specified detail message.LoginFailedException
(Session session, String message, Throwable cause) Constructs a new login failed exception for a given session with the specified detail message and cause.LoginFailedException
(Session session, Throwable cause) Constructs a new login failed exception for a given session with the specified cause and a detail message of(cause==null ?
-
Method Summary
Methods inherited from class org.tentackle.session.PersistenceException
createFromRemoteException, extractPersistenceException, getIdentifiable, getMessage, getSession, updateDbObject
Methods inherited from class org.tentackle.common.TentackleRuntimeException
isTemporary, setTemporary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tentackle.log.Loggable
withStacktrace
-
Constructor Details
-
LoginFailedException
Constructs a new login failed exception for a given session withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
session
- the session
-
LoginFailedException
Constructs a new login failed exception for a given session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
session
- the sessionmessage
- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()
method.
-
LoginFailedException
Constructs a new login failed exception for a given session with the specified detail message and cause.- Parameters:
session
- the sessionmessage
- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
LoginFailedException
Constructs a new login failed exception for a given session with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
session
- the sessioncause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
LoginFailedException
Constructs a new login failed exception for a given identifiable.With
null
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
object
- the persistent object
-
LoginFailedException
Constructs a new login failed exception for a given session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
object
- the persistent objectmessage
- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()
method.
-
LoginFailedException
Constructs a new login failed exception for a given session with the specified detail message and cause.- Parameters:
object
- the persistent objectmessage
- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
LoginFailedException
Constructs a new login failed exception for a given session with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
object
- the persistent objectcause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
LoginFailedException
public LoginFailedException()Constructs a new login failed exception without a session and withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
. -
LoginFailedException
Constructs a new login failed exception without a session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()
method.
-
LoginFailedException
Constructs a new login failed exception without a session with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getLogLevel
- Specified by:
getLogLevel
in interfaceLoggable
-