stdlib-common: correct common exception type declarations
This commit is contained in:
@@ -41,10 +41,13 @@ public expect open class IndexOutOfBoundsException : RuntimeException {
|
|||||||
constructor(message: String?)
|
constructor(message: String?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("NO_ACTUAL_FOR_EXPECT") // TODO: Introduce typealias in JVM
|
||||||
public expect open class ConcurrentModificationException : RuntimeException {
|
public expect open class ConcurrentModificationException : RuntimeException {
|
||||||
constructor()
|
constructor()
|
||||||
constructor(message: String?)
|
constructor(message: String?)
|
||||||
|
@Deprecated("The constructor is not supported on all platforms and will be removed from kotlin-stdlib-common soon.")
|
||||||
constructor(message: String?, cause: Throwable?)
|
constructor(message: String?, cause: Throwable?)
|
||||||
|
@Deprecated("The constructor is not supported on all platforms and will be removed from kotlin-stdlib-common soon.")
|
||||||
constructor(cause: Throwable?)
|
constructor(cause: Throwable?)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,11 +78,12 @@ public expect open class AssertionError : Error {
|
|||||||
constructor(message: Any?)
|
constructor(message: Any?)
|
||||||
}
|
}
|
||||||
|
|
||||||
public expect open class NoSuchElementException : Exception {
|
public expect open class NoSuchElementException : RuntimeException {
|
||||||
constructor()
|
constructor()
|
||||||
constructor(message: String?)
|
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 {
|
public expect open class NoWhenBranchMatchedException : RuntimeException {
|
||||||
constructor()
|
constructor()
|
||||||
constructor(message: String?)
|
constructor(message: String?)
|
||||||
@@ -87,7 +91,8 @@ public expect open class NoWhenBranchMatchedException : RuntimeException {
|
|||||||
constructor(cause: Throwable?)
|
constructor(cause: Throwable?)
|
||||||
}
|
}
|
||||||
|
|
||||||
public expect open class UninitializedPropertyAccessException : RuntimeException {
|
@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 class UninitializedPropertyAccessException : RuntimeException {
|
||||||
constructor()
|
constructor()
|
||||||
constructor(message: String?)
|
constructor(message: String?)
|
||||||
constructor(message: String?, cause: Throwable?)
|
constructor(message: String?, cause: Throwable?)
|
||||||
|
|||||||
Reference in New Issue
Block a user