[jboss-jira] [JBoss JIRA] Created: (JBCLUSTER-237) Improve ClusterChooserInterceptor exception messages

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jun 9 16:43:56 EDT 2009


Improve ClusterChooserInterceptor exception messages
----------------------------------------------------

                 Key: JBCLUSTER-237
                 URL: https://jira.jboss.org/jira/browse/JBCLUSTER-237
             Project: JBoss Clustering
          Issue Type: Task
      Security Level: Public (Everyone can see)
          Components: HA-Client
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
            Priority: Minor
             Fix For: HA-Client 2.0.0.BETA1


Stuff like the following needs improvement:

target = (InvokerLocator) lb.chooseTarget(family.get());
         if (target == null)
         {
            if (lastException != null)
            {
               throw new RuntimeException("cluster invocation failed, last exception was: ", lastException);
            }
            else
            {
               throw new RuntimeException("cluster invocation failed");
            }
         }
         failoverCounter++;
      }
      // if we get here this means list was exhausted
      throw new RuntimeException("Unreachable?: Service unavailable.");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list