Skip to content

Navigation Menu

Sign inAppearance settings
Appearance settings

Latest commit

 

History

History
History
162 lines (137 loc) · 5.59 KB

File metadata and controls

162 lines (137 loc) · 5.59 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlin
public expect open class Error : Throwable {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class Exception : Throwable {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class RuntimeException : Exception {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class IllegalArgumentException : RuntimeException {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class IllegalStateException : RuntimeException {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class IndexOutOfBoundsException : RuntimeException {
public constructor()
public constructor(message: String?)
}
public expect open class ConcurrentModificationException : RuntimeException {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class UnsupportedOperationException : RuntimeException {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
public expect open class NumberFormatException : IllegalArgumentException {
public constructor()
public constructor(message: String?)
}
public expect open class NullPointerException : RuntimeException {
public constructor()
public constructor(message: String?)
}
public expect open class ClassCastException : RuntimeException {
public constructor()
public constructor(message: String?)
}
public expect open class AssertionError : Error {
public constructor()
public constructor(message: Any?)
@SinceKotlin("1.9")
public constructor(message: String?, cause: Throwable?)
}
public expect open class NoSuchElementException : RuntimeException {
public constructor()
public constructor(message: String?)
}
@SinceKotlin("1.3")
public expect open class ArithmeticException : RuntimeException {
public constructor()
public 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.", level = DeprecationLevel.ERROR)
@Suppress("EXPECT_ACTUAL_INCOMPATIBILITY") // internal in Native and Wasm
public expect open class NoWhenBranchMatchedException : RuntimeException {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
@Deprecated("This exception type is not supposed to be thrown or caught in common code and will be removed from kotlin-stdlib-common soon.", level = DeprecationLevel.ERROR)
@Suppress("EXPECT_ACTUAL_INCOMPATIBILITY") // internal in Native and Wasm
public expect class UninitializedPropertyAccessException : RuntimeException {
public constructor()
public constructor(message: String?)
public constructor(message: String?, cause: Throwable?)
public constructor(cause: Throwable?)
}
/**
* Thrown after invocation of a function or property that was expected to return `Nothing`, but returned something instead.
*/
@SinceKotlin("1.4")
@PublishedApi
internal class KotlinNothingValueException : RuntimeException {
public constructor() : super()
public constructor(message: String?) : super(message)
public constructor(message: String?, cause: Throwable?) : super(message, cause)
public constructor(cause: Throwable?) : super(cause)
}
/**
* Returns the detailed description of this throwable with its stack trace.
*
* The detailed description includes:
* - the short description (see [Throwable.toString]) of this throwable;
* - the complete stack trace;
* - detailed descriptions of the exceptions that were [suppressed][suppressedExceptions] in order to deliver this exception;
* - the detailed description of each throwable in the [Throwable.cause] chain.
*/
@SinceKotlin("1.4")
public expect fun Throwable.stackTraceToString(): String
/**
* Prints the [detailed description][Throwable.stackTraceToString] of this throwable to the standard output or standard error output.
*/
@SinceKotlin("1.4")
public expect fun Throwable.printStackTrace(): Unit
/**
* When supported by the platform, adds the specified exception to the list of exceptions that were
* suppressed in order to deliver this exception.
*/
@SinceKotlin("1.4")
public expect fun Throwable.addSuppressed(exception: Throwable)
/**
* Returns a list of all exceptions that were suppressed in order to deliver this exception.
*
* The list can be empty:
* - if no exceptions were suppressed;
* - if the platform doesn't support suppressed exceptions;
* - if this [Throwable] instance has disabled the suppression.
*/
@SinceKotlin("1.4")
public expect val Throwable.suppressedExceptions: List<Throwable>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.