JS backend: support for Throwable.getMessage
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user