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:
Serializable
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(), 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
-
StreamClosedByCallerException
public StreamClosedByCallerException()Constructs an instance.
-
-
Method Details
-
equals
- Overrides:
equalsin classStreamException
-
hashCode
public int hashCode()- Overrides:
hashCodein classStreamException
-