Class UncheckedSDKError

  • All Implemented Interfaces:
    java.io.Serializable

    public class UncheckedSDKError
    extends java.lang.RuntimeException
    Thrown by an async service call when an error response occurs. Contains details about the response. This is an unchecked exception suitable for use in CompletableFuture chains.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UncheckedSDKError​(java.net.http.HttpResponse<Blob> rawResponse, int code, java.lang.String message, byte[] body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] body()  
      java.lang.String bodyAsString()  
      int code()  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String message()  
      java.net.http.HttpResponse<Blob> rawResponse()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

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

      • UncheckedSDKError

        public UncheckedSDKError​(java.net.http.HttpResponse<Blob> rawResponse,
                                 int code,
                                 java.lang.String message,
                                 byte[] body)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • rawResponse

        public java.net.http.HttpResponse<Blob> rawResponse()
      • code

        public int code()
      • message

        public java.lang.String message()
      • body

        public byte[] body()
      • bodyAsString

        public java.lang.String bodyAsString()