activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
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 GMT
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)
 



Mime
View raw message