From 999f5e9565f119253a6f23e98aa0732aa1cc69ad Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 30 Apr 2007 13:10:57 +0000
Subject: [PATCH] Refactor some code:

---
 opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java b/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
index 5ae8327..662e23e 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
@@ -27,7 +27,7 @@
 
 package org.opends.quicksetup.util;
 
-import org.opends.quicksetup.QuickSetupException;
+import org.opends.quicksetup.ApplicationException;
 import org.opends.quicksetup.Application;
 import org.opends.quicksetup.i18n.ResourceProvider;
 
@@ -102,18 +102,18 @@
   /**
    * Performs the zip extraction.
    * @param destination File where the zip file will be extracted
-   * @throws QuickSetupException if something goes wrong
+   * @throws ApplicationException if something goes wrong
    */
-  public void extract(File destination) throws QuickSetupException {
+  public void extract(File destination) throws ApplicationException {
     extract(Utils.getPath(destination));
   }
 
   /**
    * Performs the zip extraction.
    * @param destination File where the zip file will be extracted
-   * @throws QuickSetupException if something goes wrong
+   * @throws ApplicationException if something goes wrong
    */
-  public void extract(String destination) throws QuickSetupException {
+  public void extract(String destination) throws ApplicationException {
 
     ZipInputStream zipIn = new ZipInputStream(is);
     int nEntries = 1;
@@ -156,8 +156,8 @@
                     Utils.getThrowableMsg(ResourceProvider.getInstance(),
                       "error-copying", arg, ioe);
 
-            throw new QuickSetupException(
-                    QuickSetupException.Type.FILE_SYSTEM_ERROR,
+            throw new ApplicationException(
+                    ApplicationException.Type.FILE_SYSTEM_ERROR,
                     errorMsg, ioe);
           }
         }
@@ -199,8 +199,8 @@
       String errorMsg =
               Utils.getThrowableMsg(ResourceProvider.getInstance(),
                       "error-zip-stream", arg, ioe);
-      throw new QuickSetupException(QuickSetupException.Type.FILE_SYSTEM_ERROR,
-          errorMsg, ioe);
+      throw new ApplicationException(
+          ApplicationException.Type.FILE_SYSTEM_ERROR, errorMsg, ioe);
     }
   }
 

--
Gitblit v1.10.0