Class ConnectionException

All Implemented Interfaces:
Serializable

public class ConnectionException extends IOException
Is thrown when a connection error occurs. Returns the InetSocketAddress to get more information about the used Connection
See Also:
  • Constructor Details

    • ConnectionException

      public ConnectionException(IOException e, InetSocketAddress addr)
      Parameters:
      e - IOException which causes this exception
      addr - address used for connect
  • Method Details

    • getSocketAddress

      public InetSocketAddress getSocketAddress()
      Returns:
      InetSocketAddress causing the ConnectionException
    • toString

      public String toString()
      Overrides:
      toString in class Throwable