Skip to content

Commit

Permalink
Fix IOException to not drop cause (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Nov 21, 2023
1 parent 1e29117 commit ba4a66e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exceptions/src/appleMain/kotlin/Exceptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package com.juul.kable
public actual open class IOException actual constructor(
message: String?,
cause: Throwable?,
) : Exception(message) {
) : Exception(message, cause) {
public actual constructor() : this(null, null)
public actual constructor(message: String?) : this(message, null)
public actual constructor(cause: Throwable?) : this(null, cause)
Expand Down
2 changes: 1 addition & 1 deletion exceptions/src/jsMain/kotlin/Exceptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package com.juul.kable
public actual open class IOException actual constructor(
message: String?,
cause: Throwable?,
) : Exception(message) {
) : Exception(message, cause) {
public actual constructor() : this(null, null)
public actual constructor(message: String?) : this(message, null)
public actual constructor(cause: Throwable?) : this(null, cause)
Expand Down

0 comments on commit ba4a66e

Please sign in to comment.