Introduce common ArithmeticException

Make divisionByZero test still fail in JS after introducing ArithmeticException
This commit is contained in:
Ilya Gorbunov
2018-08-09 23:39:17 +03:00
parent ceb909d261
commit 2df78fc81a
5 changed files with 30 additions and 9 deletions
@@ -107,6 +107,10 @@ public actual open class NoSuchElementException actual constructor(message: Stri
actual constructor() : this(null)
}
@SinceKotlin("1.3")
public actual open class ArithmeticException actual constructor(message: String?) : RuntimeException(message) {
actual constructor() : this(null)
}
public actual open class NoWhenBranchMatchedException actual constructor(message: String?, cause: Throwable?) : RuntimeException(message, cause) {
actual constructor() : this(null, null)