quintonm    2003/01/21 13:01:44

  Modified:    src/java/org/apache/turbine/services/xmlrpc/util
                        FileTransfer.java
  Log:
  - TurbineException is thrown instead of Exception
  
  Revision  Changes    Path
  1.4       +16 -13    
jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/util/FileTransfer.java
  
  Index: FileTransfer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/util/FileTransfer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FileTransfer.java 4 Jan 2003 03:56:34 -0000       1.3
  +++ FileTransfer.java 21 Jan 2003 21:01:44 -0000      1.4
  @@ -61,6 +61,7 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.turbine.services.xmlrpc.TurbineXmlRpc;
  +import org.apache.turbine.util.TurbineException;
   
   /**
    * Test class for FileHandler.
  @@ -87,7 +88,7 @@
                               String sourceFileName,
                               String destinationLocationProperty,
                               String destinationFileName)
  -                            throws Exception
  +                            throws TurbineException
       {
           try
           {
  @@ -117,7 +118,7 @@
           catch (Exception e)
           {
               log.error("Error sending file to server:", e);
  -            throw new Exception(e.toString());
  +            throw new TurbineException(e);
           }
       }
   
  @@ -132,6 +133,7 @@
        * @param sourceFileName
        * @param destinationLocationProperty
        * @param destinationFileName
  +     * @throws TurbineException
        */
       public static void send(String serverURL,
                               String username,
  @@ -140,7 +142,7 @@
                               String sourceFileName,
                               String destinationLocationProperty,
                               String destinationFileName)
  -                            throws Exception
  +                            throws TurbineException
       {
           try
           {
  @@ -174,7 +176,7 @@
           catch (Exception e)
           {
               log.error("Error sending file to server:", e);
  -            throw new Exception(e.toString());
  +            throw new TurbineException(e);
           }
       }
   
  @@ -186,13 +188,14 @@
        * @param sourceFileName
        * @param destinationLocationProperty
        * @param destinationFileName
  +     * @throws TurbineException
        */
       public static void get(String serverURL,
                              String sourceLocationProperty,
                              String sourceFileName,
                              String destinationLocationProperty,
                              String destinationFileName)
  -                           throws Exception
  +                           throws TurbineException
       {
   
           try
  @@ -223,7 +226,7 @@
           catch (Exception e)
           {
               log.error("Error getting file from server:", e);
  -            throw new Exception(e.toString());
  +            throw new TurbineException(e);
           }
       }
   
  @@ -246,7 +249,7 @@
                              String sourceFileName,
                              String destinationLocationProperty,
                              String destinationFileName)
  -                           throws Exception
  +                           throws TurbineException
       {
   
           try
  @@ -281,7 +284,7 @@
           catch (Exception e)
           {
               log.error("Error getting file from server:", e);
  -            throw new Exception(e.toString());
  +            throw new TurbineException(e);
           }
       }
   
  @@ -296,7 +299,7 @@
       public static void remove(String serverURL,
                                 String sourceLocationProperty,
                                 String sourceFileName)
  -                              throws Exception
  +                              throws TurbineException
       {
           try
           {
  @@ -318,7 +321,7 @@
           catch (Exception e)
           {
               log.error("Error removing file from server:", e);
  -            throw new Exception(e.toString());
  +            throw new TurbineException(e);
           }
       }
   
  @@ -337,7 +340,7 @@
                                 String password,
                                 String sourceLocationProperty,
                                 String sourceFileName)
  -                              throws Exception
  +                              throws TurbineException
       {
           try
           {
  @@ -363,7 +366,7 @@
           catch (Exception e)
           {
               log.error("Error removing file from server:", e);
  -            throw new Exception(e.toString());
  +            throw new TurbineException(e);
           }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to