Class StreamException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getstream.chat.java.exceptions.StreamException
All Implemented Interfaces:
Serializable

public class StreamException extends Exception
See Also:
  • Constructor Details

  • Method Details

    • build

      public static StreamException build(String issue)
      Builds a StreamException to signal an issue
      Parameters:
      issue - the issue
      Returns:
      the StreamException
    • build

      @Deprecated public static StreamException build(okhttp3.ResponseBody responseBody)
      Deprecated.
      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(retrofit2.Response<?> httpResponse)
      Builds a StreamException based on response from the server and http code
      Parameters:
      httpResponse - Stream API response
      Returns:
      the StreamException
    • build

      public static StreamException build(Throwable t)
      Builds a StreamException when an exception occurs calling the API
      Parameters:
      t - the underlying exception
      Returns:
      the StreamException