kotlinx-io icon indicating copy to clipboard operation
kotlinx-io copied to clipboard

Add IOException constructor(message: Throwable?)

Open martinkretzschmar opened this issue 1 year ago • 0 comments
trafficstars

IOException lacks the secondary constructor public constructor(message: Throwable?). The standard exceptions in the Kotlin stdlib and java.io.IOException (= the JVM actual) all have this constructor.

Would it be possible to add it?

Background: this would let us mechanically (without special casing this constructor) replace java.io.IOException with kotlinx.io.IOException as we migrate our codebase to KMP.

martinkretzschmar avatar Feb 26 '24 15:02 martinkretzschmar