Package org.apache.xmlrpc
Class XmlRpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.xmlrpc.XmlRpcException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TimingOutCallback.TimeoutException
,XmlRpcClientException
,XmlRpcExtensionException
,XmlRpcHttpTransportException
,XmlRpcInvocationException
,XmlRpcLoadException
,XmlRpcNoSuchHandlerException
,XmlRpcNotAuthorizedException
This exception is thrown by the XmlRpcClient, if an invocation of the
remote method failed. Failure may have two reasons: The invocation
failed on the remote side (for example, an exception was thrown within
the server) or the communication with the server failed. The latter
is indicated by throwing an instance of
XmlRpcClientException
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The fault code of the exception.final Throwable
If the transport was able to catch a remote exception (as is the case, if the local transport is used or if extensions are enabled and the server returned a serialized exception), then this field contains the trapped exception.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionXmlRpcException
(int pCode, String pMessage) Creates a new instance with the given error code and error message.XmlRpcException
(int pCode, String pMessage, Throwable pLinkedException) Creates a new instance with the given error code, error message and cause.XmlRpcException
(String pMessage) Creates a new instance with the given error message and error code 0.XmlRpcException
(String pMessage, Throwable pLinkedException) Creates a new instance with the given error message and cause. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
void
printStackTrace
(PrintStream pStream) void
printStackTrace
(PrintWriter pWriter) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
code
public final int codeThe fault code of the exception. For servers based on this library, this will always be 0. (If there are predefined error codes, they should be in the XML-RPC spec.) -
linkedException
If the transport was able to catch a remote exception (as is the case, if the local transport is used or if extensions are enabled and the server returned a serialized exception), then this field contains the trapped exception.
-
-
Constructor Details
-
XmlRpcException
Creates a new instance with the given error code and error message.- Parameters:
pCode
- Error code.pMessage
- Detail message.
-
XmlRpcException
Creates a new instance with the given error message and cause.- Parameters:
pMessage
- Detail message.pLinkedException
- The errors cause.
-
XmlRpcException
Creates a new instance with the given error message and error code 0.- Parameters:
pMessage
- Detail message.
-
XmlRpcException
Creates a new instance with the given error code, error message and cause.- Parameters:
pCode
- Error code.pMessage
- Detail message.pLinkedException
- The errors cause.
-
-
Method Details
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
getCause
-