Author: jochen
Date: Sat Mar 25 15:00:43 2006
New Revision: 388850

URL: http://svn.apache.org/viewcvs?rev=388850&view=rev
Log:
Simplified the client code and made streaming possible with the Commons 
HttpClient.

Added:
    
webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/XmlRpcIOException.java

Added: 
webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/XmlRpcIOException.java
URL: 
http://svn.apache.org/viewcvs/webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/XmlRpcIOException.java?rev=388850&view=auto
==============================================================================
--- 
webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/XmlRpcIOException.java
 (added)
+++ 
webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/XmlRpcIOException.java
 Sat Mar 25 15:00:43 2006
@@ -0,0 +1,29 @@
+package org.apache.xmlrpc.util;
+
+import java.io.IOException;
+
+
+/** This is a subclass of [EMAIL PROTECTED] IOException}, which
+ * allows to attach a linked exception. Throwing this
+ * particular instance of [EMAIL PROTECTED] IOException} allows
+ * to catch it and throw the linked exception instead.
+ */
+public class XmlRpcIOException extends IOException {
+       private static final long serialVersionUID = -7704704099502077919L;
+       private final Throwable linkedException;
+
+       /** Creates a new instance of [EMAIL PROTECTED] XmlRpcIOException}
+        * with the given cause.
+        */
+       public XmlRpcIOException(Throwable t) {
+               super(t.getMessage());
+               linkedException = t;
+       }
+
+       /** Returns the linked exception, which is the actual
+        * cause for this exception.
+        */
+       public Throwable getLinkedException() {
+               return linkedException;
+       }
+}


Reply via email to