Standard library documentation continued.

This commit is contained in:
Dmitry Jemerov
2015-02-27 20:50:11 +01:00
parent 7cd68c70d2
commit 2cc291efdb
18 changed files with 414 additions and 7 deletions
+15
View File
@@ -16,10 +16,25 @@
package kotlin
/**
* The base class for all errors and exceptions. Only instances of this class can be thrown or caught.
*
* @param message the detail message string.
* @param cause the cause of this throwable.
*/
public open class Throwable(message: String? = null, cause: Throwable? = null) {
/**
* Returns the detail message of this throwable.
*/
public fun getMessage(): String?
/**
* Returns the cause of this throwable.
*/
public fun getCause(): Throwable?
/**
* Prints the stack trace of this throwable to the standard output.
*/
public fun printStackTrace(): Unit
}