Class XmlRpcHttpTransportException

  • All Implemented Interfaces:
    Serializable

    public class XmlRpcHttpTransportException
    extends XmlRpcException
    Exception thrown if the HTTP status code sent by the server indicates that the request could not be processed. In general, the 400 and 500 level HTTP status codes will result in an XmlRpcHttpTransportException being thrown.
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlRpcHttpTransportException

        public XmlRpcHttpTransportException​(int pCode,
                                            String pMessage)
        Creates a new instance with the specified HTTP status code and HTTP status message.
        Parameters:
        pCode - The HTTP status code
        pMessage - The HTTP status message returned by the HTTP server
      • XmlRpcHttpTransportException

        public XmlRpcHttpTransportException​(int httpStatusCode,
                                            String httpStatusMessage,
                                            String message)
        Construct a new XmlRpcHttpTransportException with the specified HTTP status code, HTTP status message, and exception message.
        Parameters:
        httpStatusCode - the HTTP status code
        httpStatusMessage - the HTTP status message returned by the HTTP server
        message - the exception message.
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Get the HTTP status code that resulted in this exception.
        Returns:
        the HTTP status code that resulted in this exception.
      • getStatusMessage

        public String getStatusMessage()
        Get the status message returned by the HTTP server.
        Returns:
        the status message returned by the HTTP server.