Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAA2ED808 for ; Sun, 18 Nov 2012 03:42:15 +0000 (UTC) Received: (qmail 76810 invoked by uid 500); 18 Nov 2012 03:42:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 76564 invoked by uid 500); 18 Nov 2012 03:42:14 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 76519 invoked by uid 99); 18 Nov 2012 03:42:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Nov 2012 03:42:12 +0000 Date: Sun, 18 Nov 2012 03:42:12 +0000 (UTC) From: "Dave Brosius (JIRA)" To: commits@cassandra.apache.org Message-ID: <2102167556.128563.1353210132797.JavaMail.jiratomcat@arcas> In-Reply-To: <1720118038.57220.1351794912177.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CASSANDRA-4893) Don't throw internal exceptions over JMX MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499597#comment-13499597 ] Dave Brosius commented on CASSANDRA-4893: ----------------------------------------- doesn't doing throw new IllegalArgumentException(e); still exhibit the problem of needing the underlying exception class of 'e' in the classpath of the caller? why not just catch the exception in the MBean itself, and throw an alternative there, so as not to soften the exception handling in the main codebase? > Don't throw internal exceptions over JMX > ---------------------------------------- > > Key: CASSANDRA-4893 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4893 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.1.6, 1.2.0 beta 1 > Reporter: Nick Bailey > Assignee: Yuki Morishita > Fix For: 1.2.1 > > Attachments: 0001-remove-cassandra-specific-exceptions-from-JMX-interf.patch > > > Similarly to how we don't return internal objects over JMX we shouldn't throw internal exceptions over jmx as well. > The one example I encountered was throwing ConfigurationException for the move() command. We should check the rest of our jmx as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira