From 7ae21709bb6dbdc092052acb5098bfa5cb316d9e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 29 Mar 2007 15:09:14 +0000
Subject: [PATCH] These refactorings are essential in anticipation of a new quicksetup application for the upgrader feature (issue 598). These changes were reviewed by Josu.
---
opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallException.java b/opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
similarity index 80%
copy from opends/src/quicksetup/org/opends/quicksetup/installer/InstallException.java
copy to opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
index 772d9a9..75fbd42 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallException.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
@@ -25,23 +25,25 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
-package org.opends.quicksetup.installer;
+package org.opends.quicksetup;
/**
* This exception is used to encapsulate all the error that we might have
* during the installation.
*
- * @see Installer, WebStartInstaller, OfflineInstaller.
+ * @see org.opends.quicksetup.installer.Installer
+ * @see org.opends.quicksetup.installer.webstart.WebStartInstaller
+ * @see org.opends.quicksetup.installer.offline.OfflineInstaller
*
*/
-public class InstallException extends Exception
+public class ApplicationException extends Exception
{
private static final long serialVersionUID = -3527273444231560341L;
private Type type;
/**
- * This enum contains the different type of InstallException that we can
+ * This enum contains the different type of ApplicationException that we can
* have.
*
*/
@@ -70,23 +72,31 @@
* Error starting the Open DS server.
*/
START_ERROR,
+
+ /**
+ * Error stopping the Open DS server.
+ */
+ STOP_ERROR,
+
/**
* Error enabling the Windows service.
*/
WINDOWS_SERVICE_ERROR,
+
/**
* A bug (for instance when we throw an IllegalStateException).
*/
BUG
- };
+ }
/**
- * The constructor of the InstallException.
+ * The constructor of the ApplicationException.
* @param type the type of error we have.
* @param localizedMsg a localized string describing the problem.
* @param rootCause the root cause of this exception.
*/
- public InstallException(Type type, String localizedMsg, Throwable rootCause)
+ public ApplicationException(Type type, String localizedMsg,
+ Throwable rootCause)
{
super(localizedMsg, rootCause);
this.type = type;
--
Gitblit v1.10.0