Drop Throwable#printStackTrace, make it a JVM-specific extension
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user