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
@@ -88,6 +88,12 @@ public expect open class NoSuchElementException : RuntimeException {
constructor(message: String?)
}
@SinceKotlin("1.3")
public expect open class ArithmeticException : RuntimeException {
constructor()
constructor(message: String?)
}
@Deprecated("This exception type is not supposed to be thrown or caught in common code and will be removed from kotlin-stdlib-common soon.")
public expect open class NoWhenBranchMatchedException : RuntimeException {
constructor()