We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1831266 commit 52a11e8Copy full SHA for 52a11e8
Preventing Failure/Exception Handling/Examples/src/CaptureImplementation.kt
@@ -6,7 +6,7 @@ fun capture(f: () -> Unit): CapturedException =
6
try { // [1]
7
f()
8
CapturedException(null, // [2]
9
- "[Error]: Expected an exception")
+ "<Error>: Expected an exception")
10
} catch (e: Throwable) { // [3]
11
CapturedException(e::class,
12
if (e.message != null) ": ${e.message}"
@@ -19,5 +19,5 @@ fun main() {
19
} eq "Exception: !!!"
20
capture {
21
1
22
- } eq "[Error]: Expected an exception"
+ } eq "<Error>: Expected an exception"
23
}
0 commit comments