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/browser/NodeRefresher.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeRefresher.java b/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeRefresher.java
index 08605b7..238e6c8 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeRefresher.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeRefresher.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2009 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel.browser;
@@ -681,7 +681,7 @@
       }
       catch (Throwable t)
       {
-        throw new IllegalStateException("Error decoding dn: "+parentDn+" . "+t,
+        throw new RuntimeException("Error decoding dn: "+parentDn+" . "+t,
             t);
       }
       NamingEnumeration<SearchResult> entries = ctx.search(
@@ -714,7 +714,7 @@
           }
           catch (Throwable t)
           {
-            throw new IllegalStateException("Error decoding dns: "+t, t);
+            throw new RuntimeException("Error decoding dns: "+t, t);
           }
 
           if (!add)
@@ -743,7 +743,7 @@
               }
               catch (Throwable t)
               {
-                throw new IllegalStateException("Error decoding dn: "+
+                throw new RuntimeException("Error decoding dn: "+
                     addedEntry.getName()+" . "+t, t);
               }
             }
@@ -771,7 +771,7 @@
                       }
                       catch (Throwable t)
                       {
-                        throw new IllegalStateException("Error decoding dn: "+
+                        throw new RuntimeException("Error decoding dn: "+
                             node.getDN()+" . "+t, t);
                       }
                     }

--
Gitblit v1.10.0