public class InvalidateSessionException
extends java.lang.Exception
Exception
that is thrown by the utility
TestUtil.handleException(EPPSession, Exception)
method to
indicate that the session should be invalidated by the calling method and
further use of the session should be terminated.Constructor and Description |
---|
InvalidateSessionException()
Default constructor
|
InvalidateSessionException(EPPSession aSession)
Constructor that takes the session that should be invalidated.
|
InvalidateSessionException(EPPSession aSession,
java.lang.String aMessage)
Create with text message describing the exception along with the session
that should be invalidated.
|
InvalidateSessionException(EPPSession aSession,
java.lang.String aMessage,
java.lang.Throwable aCause)
Create with text message describing the exception and an associated cause
Throwable and the session that should be invalidated. |
InvalidateSessionException(EPPSession aSession,
java.lang.Throwable cause)
Create with an associated cause
Throwable and the session
that should be invalidated. |
InvalidateSessionException(java.lang.String aMessage)
Create with text message describing the exception.
|
InvalidateSessionException(java.lang.String aMessage,
java.lang.Throwable aCause)
Create with text message describing the exception and an associated cause
Throwable . |
InvalidateSessionException(java.lang.Throwable aCause)
Create with an associated cause
Throwable . |
Modifier and Type | Method and Description |
---|---|
EPPSession |
getSession()
Gets the session that should be invalidated.
|
boolean |
hasSession()
Has the session to be invalidated been set?
|
void |
setSession(EPPSession aSession)
Sets the session that should be invalidated.
|
public InvalidateSessionException()
public InvalidateSessionException(java.lang.String aMessage)
aMessage
- description messagepublic InvalidateSessionException(java.lang.String aMessage, java.lang.Throwable aCause)
Throwable
.aMessage
- description messageaCause
- Throwable
that caused the exceptionpublic InvalidateSessionException(java.lang.Throwable aCause)
Throwable
.aCause
- Throwable
that caused the exceptionpublic InvalidateSessionException(EPPSession aSession)
aSession
- Session that should be invalidatedpublic InvalidateSessionException(EPPSession aSession, java.lang.String aMessage)
aSession
- Session that should be invalidatedaMessage
- description messagepublic InvalidateSessionException(EPPSession aSession, java.lang.String aMessage, java.lang.Throwable aCause)
Throwable
and the session that should be invalidated.aSession
- Session that should be invalidatedaMessage
- description messageaCause
- Throwable
that caused the exceptionpublic InvalidateSessionException(EPPSession aSession, java.lang.Throwable cause)
Throwable
and the session
that should be invalidated.aSession
- Session that should be invalidatedcause
- Throwable
that caused the exceptionpublic boolean hasSession()
true
of the session has been set;
false
otherwise.public EPPSession getSession()
null
otherwise.public void setSession(EPPSession aSession)
aSession
- Session that should be invalidated