Package com.verisign.epp.util
Class InvalidateSessionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.verisign.epp.util.InvalidateSessionException
- All Implemented Interfaces:
Serializable
Simple
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.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorInvalidateSessionException(EPPSession aSession) Constructor that takes the session that should be invalidated.InvalidateSessionException(EPPSession aSession, String aMessage) Create with text message describing the exception along with the session that should be invalidated.InvalidateSessionException(EPPSession aSession, String aMessage, Throwable aCause) Create with text message describing the exception and an associated causeThrowableand the session that should be invalidated.InvalidateSessionException(EPPSession aSession, Throwable cause) Create with an associated causeThrowableand the session that should be invalidated.InvalidateSessionException(String aMessage) Create with text message describing the exception.InvalidateSessionException(String aMessage, Throwable aCause) Create with text message describing the exception and an associated causeThrowable.InvalidateSessionException(Throwable aCause) Create with an associated causeThrowable. -
Method Summary
Modifier and TypeMethodDescriptionGets the session that should be invalidated.booleanHas the session to be invalidated been set?voidsetSession(EPPSession aSession) Sets the session that should be invalidated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidateSessionException
public InvalidateSessionException()Default constructor -
InvalidateSessionException
Create with text message describing the exception.- Parameters:
aMessage- description message
-
InvalidateSessionException
Create with text message describing the exception and an associated causeThrowable.- Parameters:
aMessage- description messageaCause-Throwablethat caused the exception
-
InvalidateSessionException
Create with an associated causeThrowable.- Parameters:
aCause-Throwablethat caused the exception
-
InvalidateSessionException
Constructor that takes the session that should be invalidated.- Parameters:
aSession- Session that should be invalidated
-
InvalidateSessionException
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
Create with text message describing the exception and an associated causeThrowableand the session that should be invalidated.- Parameters:
aSession- Session that should be invalidatedaMessage- description messageaCause-Throwablethat caused the exception
-
InvalidateSessionException
Create with an associated causeThrowableand the session that should be invalidated.- Parameters:
aSession- Session that should be invalidatedcause-Throwablethat caused the exception
-
-
Method Details
-
hasSession
public boolean hasSession()Has the session to be invalidated been set?- Returns:
trueof the session has been set;falseotherwise.
-
getSession
Gets the session that should be invalidated.- Returns:
- Session that should be invalidated if set;
nullotherwise.
-
setSession
Sets the session that should be invalidated.- Parameters:
aSession- Session that should be invalidated
-