Class ConnectionException

  • All Implemented Interfaces:
    java.io.Serializable

    class ConnectionException
    extends java.io.IOException
    The ConnectionException is thrown if there is a problem establishing a connection to the server. Such a problem can occur if the server has been stopped when a new connection arrives. This can also be thrown if some other connection related issue occurs.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionException​(java.lang.String message)
      Constructor for the ConnectionException object.
      ConnectionException​(java.lang.String message, java.lang.Throwable cause)
      Constructor for the ConnectionException object.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
    • Constructor Detail

      • ConnectionException

        public ConnectionException​(java.lang.String message)
        Constructor for the ConnectionException object. This is used to represent an exception that is thrown when an error occurs during the connect process. Typically this is thrown if there is a problem connecting or accepting from a socket.
        Parameters:
        message - this is the message describing the exception
      • ConnectionException

        public ConnectionException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Constructor for the ConnectionException object. This is used to represent an exception that is thrown when an error occurs during the connect process. Typically this is thrown if there is a problem connecting or accepting from a socket.
        Parameters:
        message - this is the message describing the exception
        cause - this is the cause of the producer exception