Class StreamException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.getstream.chat.java.exceptions.StreamException
-
- All Implemented Interfaces:
java.io.Serializable
public class StreamException extends java.lang.Exception- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamException.ResponseData
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamExceptionbuild(java.lang.String issue)Builds a StreamException to signal an issuestatic StreamExceptionbuild(java.lang.Throwable t)Builds a StreamException when an exception occurs calling the APIstatic StreamExceptionbuild(okhttp3.ResponseBody responseBody)Builds a StreamException using the response body when Stream API request fails
-
-
-
Method Detail
-
build
public static StreamException build(java.lang.String issue)
Builds a StreamException to signal an issue- Parameters:
issue- the issue- Returns:
- the StreamException
-
build
public static StreamException build(okhttp3.ResponseBody responseBody)
Builds a StreamException using the response body when Stream API request fails- Parameters:
responseBody- Stream API response body- Returns:
- the StreamException
-
build
public static StreamException build(java.lang.Throwable t)
Builds a StreamException when an exception occurs calling the API- Parameters:
t- the underlying exception- Returns:
- the StreamException
-
-