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:
java.io.Serializable
public class StreamClosedByServerException extends StreamException
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()
, orEventSource.close()
is called from another thread.See
StreamException
for more about EventSource's exception behavior.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamClosedByServerException()
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classStreamException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classStreamException
-
-