Move exceptions to kotlin package in JS library, introduce type aliases for exceptions in kotlin package in JVM runtime.

#KT-18 Fixed
This commit is contained in:
Ilya Gorbunov
2016-06-28 20:57:35 +03:00
parent afe1b7eab1
commit 0d7819e011
7 changed files with 87 additions and 41 deletions
@@ -1,6 +1,5 @@
package kotlin.collections
import java.util.NoSuchElementException
private enum class State {
Ready,
@@ -20,9 +20,6 @@
package kotlin.text
import java.util.NoSuchElementException
import kotlin.text.MatchResult
import kotlin.text.Regex
/**
* Returns a sub sequence of this char sequence having leading and trailing characters matching the [predicate] trimmed.
@@ -2,9 +2,6 @@
@file:kotlin.jvm.JvmName("PreconditionsKt")
package kotlin
import java.lang.IllegalArgumentException
import java.lang.IllegalStateException
/**
* Throws an [IllegalArgumentException] if the [value] is false.
*/