From 95b972d6e249498f9a5fa44d166a47eb52cf0853 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 28 Aug 2009 11:09:58 +0000
Subject: [PATCH] Most of the Exceptions that were thrown when a bug was detected where IllegalStateException.  This was not very strict, so when that usage is not appropriate RuntimeException is used.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
index 7267f12..f7c217a 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
@@ -1358,7 +1358,7 @@
           }
           catch (Throwable t)
           {
-            throw new IllegalStateException("Unexpected error: "+t, t);
+            throw new RuntimeException("Unexpected error: "+t, t);
           }
         }
         hmBaseDNs.put(backendID, baseDNs);
@@ -1476,7 +1476,7 @@
             }
             catch (Throwable t)
             {
-              throw new IllegalStateException("Unexpected error: "+t, t);
+              throw new RuntimeException("Unexpected error: "+t, t);
             }
             dns.add(dn);
             SortedSet<AbstractIndexDescriptor> indexes =
@@ -1878,7 +1878,7 @@
       int n = Integer.parseInt(stringValue);
       if ((n > maxValue) || (n < minValue))
       {
-        throw new IllegalStateException("Invalid value");
+        throw new RuntimeException("Invalid value");
       }
     }
     catch (Throwable t)

--
Gitblit v1.10.0