Class ConnectionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.simpleframework.transport.connect.ConnectionException
All Implemented Interfaces:
Serializable

class ConnectionException extends 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 Details

    • ConnectionException

      public ConnectionException(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(String message, 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