Class StreamException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getstream.chat.java.exceptions.StreamException
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStreamException(String message, StreamException.ResponseData responseData) StreamException(String message, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamExceptionBuilds a StreamException to signal an issuestatic StreamExceptionBuilds a StreamException when an exception occurs calling the APIstatic StreamExceptionbuild(okhttp3.ResponseBody responseBody) Deprecated.static StreamExceptionbuild(retrofit2.Response<?> httpResponse) Builds a StreamException based on response from the server and http codeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamException
-
StreamException
-
StreamException
-
-
Method Details
-
build
Builds a StreamException to signal an issue- Parameters:
issue- the issue- Returns:
- the StreamException
-
build
Deprecated.Builds a StreamException using the response body when Stream API request fails- Parameters:
responseBody- Stream API response body- Returns:
- the StreamException
-
build
Builds a StreamException based on response from the server and http code- Parameters:
httpResponse- Stream API response- Returns:
- the StreamException
-
build
Builds a StreamException when an exception occurs calling the API- Parameters:
t- the underlying exception- Returns:
- the StreamException
-