Class HttpErrors.HttpErrorException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    HttpErrors

    public static final class HttpErrors.HttpErrorException
    extends java.lang.Exception
    Represents an HTTP response error as an exception.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpErrorException​(int status)
      Constructs an instance.
    • Method Summary

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

      • HttpErrorException

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

      • getStatus

        public int getStatus()
        Returns the status code.
        Returns:
        the status code