rsocket / rsocket-kotlin

RSocket Kotlin multi-platform implementation
http://rsocket.io
Apache License 2.0
552 stars 37 forks source link

Provide custom exceptions about reason of closing connections instead of transport agnostic #148

Open whyoleg opened 3 years ago

whyoleg commented 3 years ago

ClosedReceiveChannelException is produced by transport specifics - both in TCP and WS implementations. Looks like it will be better to provide some custom exception for case of failed connection.

Originally posted by @whyoleg in https://github.com/rsocket/rsocket-kotlin/issues/145#issuecomment-816762386