Class InvalidateSessionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.verisign.epp.util.InvalidateSessionException
All Implemented Interfaces:
Serializable

public class InvalidateSessionException extends Exception
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 Details

    • InvalidateSessionException

      public InvalidateSessionException()
      Default constructor
    • InvalidateSessionException

      public InvalidateSessionException(String aMessage)
      Create with text message describing the exception.
      Parameters:
      aMessage - description message
    • InvalidateSessionException

      public InvalidateSessionException(String aMessage, Throwable aCause)
      Create with text message describing the exception and an associated cause Throwable.
      Parameters:
      aMessage - description message
      aCause - Throwable that caused the exception
    • InvalidateSessionException

      public InvalidateSessionException(Throwable aCause)
      Create with an associated cause Throwable.
      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, String aMessage)
      Create with text message describing the exception along with the session that should be invalidated.
      Parameters:
      aSession - Session that should be invalidated
      aMessage - description message
    • InvalidateSessionException

      public InvalidateSessionException(EPPSession aSession, String aMessage, Throwable aCause)
      Create with text message describing the exception and an associated cause Throwable and the session that should be invalidated.
      Parameters:
      aSession - Session that should be invalidated
      aMessage - description message
      aCause - Throwable that caused the exception
    • InvalidateSessionException

      public InvalidateSessionException(EPPSession aSession, Throwable cause)
      Create with an associated cause Throwable and the session that should be invalidated.
      Parameters:
      aSession - Session that should be invalidated
      cause - Throwable that caused the exception
  • Method Details

    • 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