[
https://issues.apache.org/jira/browse/CASSANDRA-18527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722736#comment-17722736
]
Stefan Miklosovic commented on CASSANDRA-18527:
-----------------------------------------------
I believe this is somehow related to CASSANDRA-18484. Can we put all further
cases like this under that ticket?
> StorageServiceMBean throws inconsistent exceptions
> --------------------------------------------------
>
> Key: CASSANDRA-18527
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18527
> Project: Cassandra
> Issue Type: Bug
> Reporter: Hao Zhong
> Priority: Normal
>
> StorageServiceMBean has the following two methods:
>
> {code:java}
> public List<String> getTokens()
> {
> return ssProxy.getTokens();
> }
> public List<String> getTokens(String endpoint)
> {
> try
> {
> return ssProxy.getTokens(endpoint);
> }
> catch (UnknownHostException e)
> {
> throw new RuntimeException(e);
> }
> }
> {code}
> The getTokens() method throws UnknownHostException, but the getTokens(String
> endpoint) throws RuntimeException. This is strange when the error is
> identical and the two methods have the same name.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]