Drop Throwable#printStackTrace, make it a JVM-specific extension

This commit is contained in:
Alexander Udalov
2015-12-24 03:53:27 +03:00
parent 3d44471659
commit 75f046fa81
14 changed files with 14 additions and 27 deletions
-5
View File
@@ -23,14 +23,9 @@ package kotlin
* @param cause the cause of this throwable.
*/
public open class Throwable(val message: String?, val cause: Throwable?) {
constructor(message: String?) : this(message, null)
constructor(cause: Throwable?) : this(cause?.toString(), cause)
constructor() : this(null, null)
/**
* Prints the stack trace of this throwable to the standard output.
*/
public fun printStackTrace(): Unit
}