diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-12-02 16:25:20 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-12-02 16:25:20 +0000 |
commit | 9eb2d3fa77e582aca1098836633903fc7e53be81 (patch) | |
tree | abf5b4401421e1d0bb40496437ca9b603af8696f | |
parent | 0c75fe7c176229e10622a3ede6c03e07ef04000d (diff) | |
download | scala-9eb2d3fa77e582aca1098836633903fc7e53be81.tar.gz scala-9eb2d3fa77e582aca1098836633903fc7e53be81.tar.bz2 scala-9eb2d3fa77e582aca1098836633903fc7e53be81.zip |
- Generalized exceptions from java.lang.Excepti...
- Generalized exceptions from java.lang.Exception to java.lang.Throwable
-rw-r--r-- | sources/scala/runtime/compat/Platform.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scala/runtime/compat/Platform.scala b/sources/scala/runtime/compat/Platform.scala index 798b301b01..d0fa630f8f 100644 --- a/sources/scala/runtime/compat/Platform.scala +++ b/sources/scala/runtime/compat/Platform.scala @@ -14,8 +14,8 @@ package scala.runtime.compat; object Platform { def getClass(obj: AnyRef) = obj.getClass(); def getClassName(obj: AnyRef) = obj.getClass().getName(); - def printStackTrace(exc: java.lang.Exception) = exc.printStackTrace(); - def getMessage(exc: java.lang.Exception) = exc.getMessage(); + def printStackTrace(exc: java.lang.Throwable) = exc.printStackTrace(); + def getMessage(exc: java.lang.Throwable) = exc.getMessage(); def split(str: String, separator: Char): Array[String] = { str.split(separator.toString()); } |