Class StreamException

  • All Implemented Interfaces:
    java.io.Serializable

    public class StreamException
    extends java.lang.Exception
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static StreamException build​(java.lang.String issue)
      Builds a StreamException to signal an issue
      static StreamException build​(java.lang.Throwable t)
      Builds a StreamException when an exception occurs calling the API
      static StreamException build​(okhttp3.ResponseBody responseBody)
      Deprecated.
      static StreamException build​(retrofit2.Response<?> httpResponse)
      Builds a StreamException based on response from the server and http code
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StreamException

        public StreamException​(java.lang.String message,
                               java.lang.Throwable t)
      • StreamException

        public StreamException​(java.lang.Throwable t)
    • 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

        @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​(java.lang.Throwable t)
        Builds a StreamException when an exception occurs calling the API
        Parameters:
        t - the underlying exception
        Returns:
        the StreamException