[jboss-jira] [JBoss JIRA] Assigned: (JBCLUSTER-237) Improve ClusterChooserInterceptor exception messages
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Mon Jul 11 16:07:31 EDT 2011
[ https://issues.jboss.org/browse/JBCLUSTER-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry reassigned JBCLUSTER-237:
------------------------------------------
Assignee: (was: Brian Stansberry)
> Improve ClusterChooserInterceptor exception messages
> ----------------------------------------------------
>
> Key: JBCLUSTER-237
> URL: https://issues.jboss.org/browse/JBCLUSTER-237
> Project: JBoss Clustering
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: HA-Client
> Reporter: 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list