Class StreamApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StreamRateLimitException

public class StreamApiException extends StreamException
Thrown when the Stream API returns a 4xx/5xx response. Carries the parsed APIError envelope.

Checked subclass of StreamException: existing throws StreamException declarations continue to compile.

See Also:
  • Constructor Details

    • StreamApiException

      public StreamApiException(String message, int statusCode, int code, @Nullable Map<String,String> exceptionFields, boolean unrecoverable, String rawResponseBody, @Nullable String moreInfo, @Nullable Object details, @Nullable Throwable cause)
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • getCode

      public int getCode()
    • getExceptionFields

      public Map<String,String> getExceptionFields()
    • isUnrecoverable

      public boolean isUnrecoverable()
    • getRawResponseBody

      public String getRawResponseBody()
    • getMoreInfo

      @Nullable public String getMoreInfo()
    • getDetails

      @Nullable public Object getDetails()