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/BrowseGeneralMonitoringPanel.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/BrowseGeneralMonitoringPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/BrowseGeneralMonitoringPanel.java
index 3404e29..86a4b11 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/BrowseGeneralMonitoringPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/BrowseGeneralMonitoringPanel.java
@@ -534,7 +534,7 @@
           entryPane.updateJavaInformation();
           break;
         default:
-          throw new IllegalStateException("Unknown node type: "+type);
+          throw new RuntimeException("Unknown node type: "+type);
         }
       }
       else
@@ -673,7 +673,7 @@
       }
       else
       {
-        throw new IllegalStateException("Unexpected tree node: "+value);
+        throw new RuntimeException("Unexpected tree node: "+value);
       }
       return icon;
     }

--
Gitblit v1.10.0