clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r920337 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.scala/src/main/scala/org/apache/clerezza/scala/service/ScalaService.scala
Date Mon, 08 Mar 2010 14:40:39 GMT
Author: reto
Date: Mon Mar  8 14:40:38 2010
New Revision: 920337

URL: http://svn.apache.org/viewvc?rev=920337&view=rev
Log:
wrapping some other exceptions as RuntimeExceptions for java interoperability

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.scala/src/main/scala/org/apache/clerezza/scala/service/ScalaService.scala

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.scala/src/main/scala/org/apache/clerezza/scala/service/ScalaService.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.scala/src/main/scala/org/apache/clerezza/scala/service/ScalaService.scala?rev=920337&r1=920336&r2=920337&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.scala/src/main/scala/org/apache/clerezza/scala/service/ScalaService.scala
(original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.scala/src/main/scala/org/apache/clerezza/scala/service/ScalaService.scala
Mon Mar  8 14:40:38 2010
@@ -188,7 +188,11 @@
 					if (cause.isInstanceOf[ScriptException]) {
 						throw cause.asInstanceOf[ScriptException]
 					} else {
-						throw cause.asInstanceOf[RuntimeException]
+						if (cause.isInstanceOf[RuntimeException]) {
+							throw cause.asInstanceOf[RuntimeException]
+						} else {
+							throw new RuntimeException(cause)
+						}
 					}
 			}
 		}



Mime
View raw message