Class UnsuccessfulResponseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnsuccessfulResponseException
    extends java.lang.Exception
    Exception class that means the remote server returned an HTTP error.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      Returns the HTTP status 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

      • UnsuccessfulResponseException

        public UnsuccessfulResponseException​(int code)
        Constructs an exception instance.
        Parameters:
        code - the HTTP status
    • Method Detail

      • getCode

        public int getCode()
        Returns the HTTP status code.
        Returns:
        the HTTP status