Class SDKError

  • All Implemented Interfaces:
    java.io.Serializable

    public class SDKError
    extends java.lang.Exception
    Thrown by a service call when an error response occurs. Contains details about the response.
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] body()  
      int code()  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String message()  
      java.net.http.HttpResponse<java.io.InputStream> 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

      • SDKError

        public SDKError​(java.net.http.HttpResponse<java.io.InputStream> 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<java.io.InputStream> rawResponse()
      • code

        public int code()
      • message

        public java.lang.String message()
      • body

        public byte[] body()