Class ErrorResponse

  • All Implemented Interfaces:
    java.io.Serializable

    public class ErrorResponse
    extends java.lang.RuntimeException
    Exception thrown when request returned an non-success HTTP code.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorResponse​(int code, java.lang.String body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()  
      int getCode()  
      • 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

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

      • ErrorResponse

        public ErrorResponse​(int code,
                             java.lang.String body)
    • Method Detail

      • getCode

        public int getCode()
      • getBody

        public java.lang.String getBody()