Class HttpError

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    HttpClientError, HttpServerError

    public abstract class HttpError
    extends java.lang.RuntimeException
    Abstract Exception class for HTTP Error status codes.

    Created by Karel Maesen, Geovise BVBA on 06/12/14.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<ServerResponse> getResponse()  
      int getStatusCode()  
      • 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

      • HttpError

        public HttpError​(int statusCode,
                         ServerResponse response)
      • HttpError

        public HttpError​(int statusCode,
                         ServerResponse response,
                         java.lang.String message)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
      • getResponse

        public java.util.Optional<ServerResponse> getResponse()