You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing an application with Ktor, I noticed that exceptions are copied with the wrong message when the exception has a constructor parameter with a default value:
and tryCopyException() in ExceptionsConstuctor.kt is called, the resulting exception will contain the message Default message instead of Custom message.
While writing an application with Ktor, I noticed that exceptions are copied with the wrong message when the exception has a constructor parameter with a default value:
When you have a class like
and throw an exception with a custom message
and
tryCopyException()
inExceptionsConstuctor.kt
is called, the resulting exception will contain the messageDefault message
instead ofCustom message
.Sample Ktor project with test cases
The text was updated successfully, but these errors were encountered: