|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.xmlrpc.XmlRpcException
public class XmlRpcException
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
.
Field Summary | |
---|---|
int |
code
The fault code of the exception. |
java.lang.Throwable |
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 Summary | |
---|---|
XmlRpcException(int pCode,
java.lang.String pMessage)
Creates a new instance with the given error code and error message. |
|
XmlRpcException(int pCode,
java.lang.String pMessage,
java.lang.Throwable pLinkedException)
Creates a new instance with the given error code, error message and cause. |
|
XmlRpcException(java.lang.String pMessage)
Creates a new instance with the given error message and error code 0. |
|
XmlRpcException(java.lang.String pMessage,
java.lang.Throwable pLinkedException)
Creates a new instance with the given error message and cause. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
|
void |
printStackTrace(java.io.PrintStream pStream)
|
void |
printStackTrace(java.io.PrintWriter pWriter)
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int code
public final java.lang.Throwable linkedException
Constructor Detail |
---|
public XmlRpcException(int pCode, java.lang.String pMessage)
pCode
- Error code.pMessage
- Detail message.public XmlRpcException(java.lang.String pMessage, java.lang.Throwable pLinkedException)
pMessage
- Detail message.pLinkedException
- The errors cause.public XmlRpcException(java.lang.String pMessage)
pMessage
- Detail message.public XmlRpcException(int pCode, java.lang.String pMessage, java.lang.Throwable pLinkedException)
pCode
- Error code.pMessage
- Detail message.pLinkedException
- The errors cause.Method Detail |
---|
public void printStackTrace(java.io.PrintStream pStream)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pWriter)
printStackTrace
in class java.lang.Throwable
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |