Class XmlRpcHttpTransportException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.client.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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • status

      private final int status
    • statusMessage

      private final String statusMessage
  • Constructor Details

    • 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 Details

    • 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.