Package org.apache.xmlrpc.client
Class XmlRpcHttpTransportException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.xmlrpc.XmlRpcException
-
- org.apache.xmlrpc.client.XmlRpcHttpTransportException
-
- All Implemented Interfaces:
java.io.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
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private int
status
private java.lang.String
statusMessage
-
Fields inherited from class org.apache.xmlrpc.XmlRpcException
code, linkedException
-
-
Constructor Summary
Constructors Constructor Description XmlRpcHttpTransportException(int pCode, java.lang.String pMessage)
Creates a new instance with the specified HTTP status code and HTTP status message.XmlRpcHttpTransportException(int httpStatusCode, java.lang.String httpStatusMessage, java.lang.String message)
Construct a new XmlRpcHttpTransportException with the specified HTTP status code, HTTP status message, and exception message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStatusCode()
Get the HTTP status code that resulted in this exception.java.lang.String
getStatusMessage()
Get the status message returned by the HTTP server.-
Methods inherited from class org.apache.xmlrpc.XmlRpcException
getCause, printStackTrace, printStackTrace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
status
private final int status
-
statusMessage
private final java.lang.String statusMessage
-
-
Constructor Detail
-
XmlRpcHttpTransportException
public XmlRpcHttpTransportException(int pCode, java.lang.String pMessage)
Creates a new instance with the specified HTTP status code and HTTP status message.- Parameters:
pCode
- The HTTP status codepMessage
- The HTTP status message returned by the HTTP server
-
XmlRpcHttpTransportException
public XmlRpcHttpTransportException(int httpStatusCode, java.lang.String httpStatusMessage, java.lang.String message)
Construct a new XmlRpcHttpTransportException with the specified HTTP status code, HTTP status message, and exception message.- Parameters:
httpStatusCode
- the HTTP status codehttpStatusMessage
- the HTTP status message returned by the HTTP servermessage
- 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 java.lang.String getStatusMessage()
Get the status message returned by the HTTP server.- Returns:
- the status message returned by the HTTP server.
-
-