Skip to content

Commit

Permalink
KTOR-2276 Fix unbound public symbol error for SocketTimeoutException (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Vos authored Jun 28, 2021
1 parent 4925708 commit 2a836a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ package io.ktor.network.sockets

import io.ktor.utils.io.errors.*

public actual class SocketTimeoutException actual constructor(message: String) : IOException(message)
public actual class SocketTimeoutException(
message: String,
cause: Throwable?
) : IOException(message, cause) {
public actual constructor(message: String) : this(message, null)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ package io.ktor.network.sockets
import io.ktor.utils.io.errors.*

@Suppress("EXPECT_WITHOUT_ACTUAL")
public actual class SocketTimeoutException actual constructor(message: String) : IOException(message)
public actual class SocketTimeoutException(
message: String,
cause: Throwable?
) : IOException(message, cause) {
public actual constructor(message: String) : this(message, null)
}

0 comments on commit 2a836a5

Please sign in to comment.