Class StreamIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class StreamIOException
    extends StreamException
    An exception indicating that a connection could not be made, or that an existing connection failed with a network error.

    See StreamException for more about EventSource's exception behavior.

    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamIOException​(java.io.IOException cause)
      Constructs an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.io.IOException getIOException()
      Returns the original error as an IOException.
      int hashCode()  
      • 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, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StreamIOException

        public StreamIOException​(java.io.IOException cause)
        Constructs an instance.
        Parameters:
        cause - the underlying error
    • Method Detail

      • getIOException

        public java.io.IOException getIOException()
        Returns the original error as an IOException.
        Returns:
        the original error