Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 49496 invoked from network); 27 Jan 2011 17:12:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 17:12:56 -0000 Received: (qmail 24505 invoked by uid 500); 27 Jan 2011 17:12:56 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 24422 invoked by uid 500); 27 Jan 2011 17:12:55 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 24415 invoked by uid 99); 27 Jan 2011 17:12:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 17:12:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 17:12:53 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BF6322388A6C; Thu, 27 Jan 2011 17:12:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1064203 - /activemq/activemq-apollo/trunk/apollo-cli/src/main/scala/org/apache/activemq/apollo/cli/commands/Helper.scala Date: Thu, 27 Jan 2011 17:12:32 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110127171232.BF6322388A6C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Thu Jan 27 17:12:32 2011 New Revision: 1064203 URL: http://svn.apache.org/viewvc?rev=1064203&view=rev Log: Let the failure class also hold a nested exception. Modified: activemq/activemq-apollo/trunk/apollo-cli/src/main/scala/org/apache/activemq/apollo/cli/commands/Helper.scala Modified: activemq/activemq-apollo/trunk/apollo-cli/src/main/scala/org/apache/activemq/apollo/cli/commands/Helper.scala URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-cli/src/main/scala/org/apache/activemq/apollo/cli/commands/Helper.scala?rev=1064203&r1=1064202&r2=1064203&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-cli/src/main/scala/org/apache/activemq/apollo/cli/commands/Helper.scala (original) +++ activemq/activemq-apollo/trunk/apollo-cli/src/main/scala/org/apache/activemq/apollo/cli/commands/Helper.scala Thu Jan 27 17:12:32 2011 @@ -30,7 +30,9 @@ object Helper { def ansi= new Ansi() - class Failure(msg:String) extends RuntimeException(msg) + class Failure(msg:String, e:Throwable) extends RuntimeException(msg, e) { + def this(msg:String) = this(msg,null) + } def error(value:Any) = throw new Failure(value.toString)