Class HttpExceptionWithDetails

  • All Implemented Interfaces:
    java.io.Serializable

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class HttpExceptionWithDetails
    extends ro.sync.basic.net.http.HttpException
    HTTP Exception with details.
    Since:
    25.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpExceptionWithDetails​(java.lang.String message, int reasonCode, java.lang.String reason, java.net.URL baseURL)
      Constructor
      HttpExceptionWithDetails​(java.lang.String message, int reasonCode, java.lang.String reason, java.net.URL baseURL, ro.sync.net.protocol.http.abstraction.HttpResponse httpResponse)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URL getBaseURL()
      Gets the base URL.
      ro.sync.net.protocol.http.abstraction.HttpResponse getHttpResponse()
      Gets the httpResponse.
      java.lang.String getReason()  
      void setBaseURL​(java.net.URL baseURL)
      Set the URL for which the message is reported.
      void setHttpResponse​(ro.sync.net.protocol.http.abstraction.HttpResponse httpResponse)
      Sets the httpResponse.
      • Methods inherited from class ro.sync.basic.net.http.HttpException

        getReasonCode, setReason, setReasonCode
      • 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

      • HttpExceptionWithDetails

        public HttpExceptionWithDetails​(java.lang.String message,
                                        int reasonCode,
                                        java.lang.String reason,
                                        java.net.URL baseURL)
        Constructor
        Parameters:
        message - The message.
        reasonCode - The reason status code.
        reason - The reason text.
        baseURL - The URL for which the message is reported.
      • HttpExceptionWithDetails

        public HttpExceptionWithDetails​(java.lang.String message,
                                        int reasonCode,
                                        java.lang.String reason,
                                        java.net.URL baseURL,
                                        ro.sync.net.protocol.http.abstraction.HttpResponse httpResponse)
        Constructor
        Parameters:
        message - The message.
        reasonCode - The reason status code.
        reason - The reason text.
        baseURL - The URL for which the message is reported.
        httpResponse - The httpResponse of the request that threw this HttpException.
    • Method Detail

      • setBaseURL

        public void setBaseURL​(java.net.URL baseURL)
        Set the URL for which the message is reported.
        Parameters:
        baseURL - The URL for which the message is reported.
      • getBaseURL

        public java.net.URL getBaseURL()
        Gets the base URL.
        Returns:
        The base URL.
      • setHttpResponse

        public void setHttpResponse​(ro.sync.net.protocol.http.abstraction.HttpResponse httpResponse)
        Sets the httpResponse.
        Parameters:
        httpResponse - The httpResponse to set.
      • getHttpResponse

        public ro.sync.net.protocol.http.abstraction.HttpResponse getHttpResponse()
        Gets the httpResponse.
        Returns:
        Returns the httpResponse.
      • getReason

        public java.lang.String getReason()
        Overrides:
        getReason in class ro.sync.basic.net.http.HttpException
        Returns:
        Returns the reason given by the server.