<p>What is the easiest way to extract the original exception from an exception returned via Apache's implementation of XML-RPC?</p>

[{'answer_id': 52995, 'author': 'ScArcher2', 'author_id': 1310, 'author_profile': 'https://Stackoverflow.com/users/1310', 'pm_score': 1, 'selected': False, 'text': '<p>According to the <a href="http://www.xmlrpc.com/spec" rel="nofollow noreferrer">XML-RPC Spec</a> it returns the "fault" in the xml.</p>\n\n<p>Is this the "Exception" you are referring to or are you refering to a Java Exception generated while making the XML-RPC call?</p>\n\n<p><strong>Fault example</strong></p>\n\n<pre><code>HTTP/1.1 200 OK\nConnection: close\nContent-Length: 426\nContent-Type: text/xml\nDate: Fri, 17 Jul 1998 19:55:02 GMT\nServer: UserLand Frontier/5.1.2-WinNT\n\n&lt;?xml version="1.0"?&gt;\n&lt;methodResponse&gt;\n  &lt;fault&gt;\n    &lt;value&gt;\n      &lt;struct&gt;\n      &lt;member&gt;\n        &lt;name&gt;faultCode&lt;/name&gt;\n        &lt;value&gt;&lt;int&gt;4&lt;/int&gt;&lt;/value&gt;\n      &lt;/member&gt;\n      &lt;member&gt;\n        &lt;name&gt;faultString&lt;/name&gt;\n        &lt;value&gt;\n          &lt;string&gt;Too many parameters.&lt;/string&gt;\n        &lt;/value&gt;\n      &lt;/member&gt;\n      &lt;/struct&gt;\n    &lt;/value&gt;\n  &lt;/fault&gt;\n&lt;/methodResponse&gt; \n</code></pre>\n'}, {'answer_id': 56631, 'author': 'John with waffle', 'author_id': 279, 'author_profile': 'https://Stackoverflow.com/users/279', 'pm_score': 3, 'selected': True, 'text': '<p>It turns out that getting the cause exception from the Apache exception is the right one.  </p>\n\n<pre><code>} catch (XmlRpcException rpce) {\n    Throwable cause = rpce.getCause();\n    if(cause != null) {\n        if(cause instanceof ExceptionYouCanHandleException) {\n            handler(cause);\n        }\n        else { throw(cause); }\n    }\n    else { throw(rpce); }\n}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/51593', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/279/']