JS backend: support for Throwable.getMessage

This commit is contained in:
Michael Nedzelsky
2014-10-05 10:19:11 +04:00
parent 5649797461
commit e5bbc2a0d8
6 changed files with 98 additions and 24 deletions
+12 -14
View File
@@ -1,30 +1,28 @@
package java.lang
import java.io.IOException
native("Error")
open public class Exception(message: String? = null): Throwable() {}
library
open public class Exception(message: String? = null): Throwable(message) {}
library
open public class RuntimeException(message: String? = null) : Exception(message) {}
library
public class IllegalArgumentException(message: String? = null) : Exception() {}
public class IllegalArgumentException(message: String? = null) : RuntimeException(message) {}
library
public class IllegalStateException(message: String? = null) : Exception() {}
native("RangeError")
public class IndexOutOfBounds(message: String? = null) : Exception(message) {}
native("RangeError")
public class IndexOutOfBoundsException(message: String? = null) : Exception(message) {}
public class IllegalStateException(message: String? = null) : RuntimeException(message) {}
library
public class UnsupportedOperationException(message: String? = null) : Exception() {}
public class IndexOutOfBoundsException(message: String? = null) : RuntimeException(message) {}
library
public class NumberFormatException(message: String? = null) : Exception() {}
public class UnsupportedOperationException(message: String? = null) : RuntimeException(message) {}
library
public class NumberFormatException(message: String? = null) : RuntimeException(message) {}
library
public class NullPointerException(message: String? = null) : RuntimeException(message) {}
library
public trait Runnable {