Class ConnectionException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      ConnectionException​(java.io.IOException e, java.net.InetSocketAddress addr)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetSocketAddress getSocketAddress()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConnectionException

        public ConnectionException​(java.io.IOException e,
                                   java.net.InetSocketAddress addr)
        Parameters:
        e - IOException which causes this exception
        addr - address used for connect
    • Method Detail

      • getSocketAddress

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable