diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-11-02 08:46:39 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-11-02 08:46:39 +0000 |
commit | 3e1e1e91bd3011ae46140f2698a578707103fe06 (patch) | |
tree | 8689732a129809698d197845233fd9e0a14eb204 /test/files | |
parent | f187d8d4737064f063cc9fbc5b036979ecc8a40f (diff) | |
download | scala-3e1e1e91bd3011ae46140f2698a578707103fe06.tar.gz scala-3e1e1e91bd3011ae46140f2698a578707103fe06.tar.bz2 scala-3e1e1e91bd3011ae46140f2698a578707103fe06.zip |
- added runtime.RichException with a getStackTr...
- added runtime.RichException with a getStackTraceString method (the
- .NET version will be more extensive) added a split(c: Char) method to
- RichString
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/enums.scala | 2 | ||||
-rw-r--r-- | test/files/run/exceptions.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/enums.scala b/test/files/run/enums.scala index 239e2944d4..1fd7dfb6c4 100644 --- a/test/files/run/enums.scala +++ b/test/files/run/enums.scala @@ -64,7 +64,7 @@ object Test { } catch { case exception: Throwable => { Console.print(" raised exception " + exception); - compat.Platform.printStackTrace(exception); + exception.printStackTrace(); } } Console.println; diff --git a/test/files/run/exceptions.scala b/test/files/run/exceptions.scala index 82740cc74d..37516737a2 100644 --- a/test/files/run/exceptions.scala +++ b/test/files/run/exceptions.scala @@ -33,7 +33,7 @@ object exceptions { val value = try { map.lookup(key) } catch { - case e => compat.Platform.getMessage(e) + case e => e.getMessage() } check("lookup(" + key + ")", value, "KO"); } |