Class XmlRpcHttpTransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.client.XmlRpcHttpTransportException
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate final intprivate final StringFields inherited from class XmlRpcException
code, linkedException -
Constructor Summary
ConstructorsConstructorDescriptionXmlRpcHttpTransportException(int pCode, String pMessage) Creates a new instance with the specified HTTP status code and HTTP status message.XmlRpcHttpTransportException(int httpStatusCode, String httpStatusMessage, String message) Construct a new XmlRpcHttpTransportException with the specified HTTP status code, HTTP status message, and exception message. -
Method Summary
Modifier and TypeMethodDescriptionintGet the HTTP status code that resulted in this exception.Get the status message returned by the HTTP server.Methods inherited from class XmlRpcException
getCause, printStackTrace, printStackTraceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
status
private final int status -
statusMessage
-
-
Constructor Details
-
XmlRpcHttpTransportException
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
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 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
Get the status message returned by the HTTP server.- Returns:
- the status message returned by the HTTP server.
-