File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Sources/JavaKit/Exceptions Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
// Translate all Java Throwable instances in a Swift error.
16
- extension Throwable : Error , CustomStringConvertible {
17
- public var description : String {
18
- return getMessage ( )
19
- }
16
+ extension Throwable : Error {
20
17
}
21
18
22
19
extension JavaClass < Throwable > {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class BasicRuntimeTests: XCTestCase {
56
56
do {
57
57
_ = try URL ( " bad url " , environment: environment)
58
58
} catch {
59
- XCTAssert ( String ( describing: error) == " no protocol: bad url " )
59
+ XCTAssertEqual ( String ( describing: error) , " java.net.MalformedURLException: no protocol: bad url" )
60
60
}
61
61
}
62
62
@@ -73,7 +73,7 @@ class BasicRuntimeTests: XCTestCase {
73
73
do {
74
74
_ = try JavaClass < Nonexistent > ( environment: environment)
75
75
} catch {
76
- XCTAssertEqual ( String ( describing: error) , " org/swift/javakit/Nonexistent " )
76
+ XCTAssertEqual ( String ( describing: error) , " java.lang.NoClassDefFoundError: org/swift/javakit/Nonexistent" )
77
77
}
78
78
}
79
79
You can’t perform that action at this time.
0 commit comments