Class ProtocolException

    • Constructor Summary

      Constructors 
      Constructor Description
      ProtocolException()
      Constructs a ProtocolException with no detail message.
      ProtocolException​(Response r)
      Constructs a ProtocolException with the specified Response object.
      ProtocolException​(java.lang.String message)
      Constructs a ProtocolException with the specified detail message.
      ProtocolException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a ProtocolException with the specified detail message and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response getResponse()
      Return the offending Response object.
      • 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

      • ProtocolException

        public ProtocolException()
        Constructs a ProtocolException with no detail message.
      • ProtocolException

        public ProtocolException​(java.lang.String message)
        Constructs a ProtocolException with the specified detail message.
        Parameters:
        message - the detail message
      • ProtocolException

        public ProtocolException​(java.lang.String message,
                                 java.lang.Throwable cause)
        Constructs a ProtocolException with the specified detail message and cause.
        Parameters:
        message - the detail message
        cause - the cause
      • ProtocolException

        public ProtocolException​(Response r)
        Constructs a ProtocolException with the specified Response object.
        Parameters:
        r - the Response
    • Method Detail

      • getResponse

        public Response getResponse()
        Return the offending Response object.
        Returns:
        the Response object