Package com.launchdarkly.eventsource
Class StreamHttpErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.launchdarkly.eventsource.StreamException
-
- com.launchdarkly.eventsource.StreamHttpErrorException
-
- All Implemented Interfaces:
java.io.Serializable
public class StreamHttpErrorException extends StreamException
An exception indicating that the remote server returned an HTTP error.HttpConnectStrategy
defines an error as any non-2xx status.See
StreamException
for more about EventSource's exception behavior.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamHttpErrorException(int code)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Returns the HTTP status code.-
Methods inherited from class com.launchdarkly.eventsource.StreamException
equals, hashCode
-
-