Package com.verisign.epp.util
Class InvalidateSessionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.verisign.epp.util.InvalidateSessionException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidateSessionException extends java.lang.Exception
SimpleException
that is thrown by the utilityTestUtil.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 Summary
Constructors Constructor Description InvalidateSessionException()
Default constructorInvalidateSessionException(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 causeThrowable
and the session that should be invalidated.InvalidateSessionException(EPPSession aSession, java.lang.Throwable cause)
Create with an associated causeThrowable
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 causeThrowable
.InvalidateSessionException(java.lang.Throwable aCause)
Create with an associated causeThrowable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
InvalidateSessionException
public InvalidateSessionException()
Default constructor
-
InvalidateSessionException
public InvalidateSessionException(java.lang.String aMessage)
Create with text message describing the exception.- Parameters:
aMessage
- description message
-
InvalidateSessionException
public InvalidateSessionException(java.lang.String aMessage, java.lang.Throwable aCause)
Create with text message describing the exception and an associated causeThrowable
.- Parameters:
aMessage
- description messageaCause
-Throwable
that caused the exception
-
InvalidateSessionException
public InvalidateSessionException(java.lang.Throwable aCause)
Create with an associated causeThrowable
.- Parameters:
aCause
-Throwable
that caused the exception
-
InvalidateSessionException
public InvalidateSessionException(EPPSession aSession)
Constructor that takes the session that should be invalidated.- Parameters:
aSession
- Session that should be invalidated
-
InvalidateSessionException
public InvalidateSessionException(EPPSession aSession, java.lang.String aMessage)
Create with text message describing the exception along with the session that should be invalidated.- Parameters:
aSession
- Session that should be invalidatedaMessage
- description message
-
InvalidateSessionException
public InvalidateSessionException(EPPSession aSession, java.lang.String aMessage, java.lang.Throwable aCause)
Create with text message describing the exception and an associated causeThrowable
and the session that should be invalidated.- Parameters:
aSession
- Session that should be invalidatedaMessage
- description messageaCause
-Throwable
that caused the exception
-
InvalidateSessionException
public InvalidateSessionException(EPPSession aSession, java.lang.Throwable cause)
Create with an associated causeThrowable
and the session that should be invalidated.- Parameters:
aSession
- Session that should be invalidatedcause
-Throwable
that caused the exception
-
-
Method Detail
-
hasSession
public boolean hasSession()
Has the session to be invalidated been set?- Returns:
true
of the session has been set;false
otherwise.
-
getSession
public EPPSession getSession()
Gets the session that should be invalidated.- Returns:
- Session that should be invalidated if set;
null
otherwise.
-
setSession
public void setSession(EPPSession aSession)
Sets the session that should be invalidated.- Parameters:
aSession
- Session that should be invalidated
-
-