Package com.launchdarkly.eventsource
Class StreamClosedByCallerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.launchdarkly.eventsource.StreamException
-
- com.launchdarkly.eventsource.StreamClosedByCallerException
-
- All Implemented Interfaces:
java.io.Serializable
public class StreamClosedByCallerException extends StreamException
An exception indicating that the stream stopped because you explicitly stopped it.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 StreamClosedByCallerException()
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
-
-