Class ResponseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResponseException
    extends java.lang.RuntimeException
    An exception wrapped around a failed response.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseException​(Response aResponse)
      Creates a new ResponseException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response getResponse()
      Returns the response.
      int getResponseCode()
      Returns the response 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

      • ResponseException

        public ResponseException​(Response aResponse)
        Creates a new ResponseException.
    • Method Detail

      • getResponse

        public Response getResponse()
        Returns the response.
      • getResponseCode

        public int getResponseCode()
        Returns the response code.