Package com.launchdarkly.eventsource
Class StreamClosedByServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.launchdarkly.eventsource.StreamException
com.launchdarkly.eventsource.StreamClosedByServerException
- All Implemented Interfaces:
Serializable
An exception indicating that the stream stopped because the server closed the
connection.
This exception only happens if you are trying to read from one thread while
EventSource.stop(), EventSource.interrupt(), or EventSource.close()
is called from another thread.
See StreamException for more about EventSource's exception behavior.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamClosedByServerException
public StreamClosedByServerException()Constructs an instance.
-
-
Method Details
-
equals
- Overrides:
equalsin classStreamException
-
hashCode
public int hashCode()- Overrides:
hashCodein classStreamException
-