convertToRSocketException function
Implementation
RSocketException convertToRSocketException(dynamic e) {
if (e == null) {
return RSocketException(RSocketErrorCode.APPLICATION_ERROR, 'Error');
} else if (e is RSocketException) {
return e;
} else {
return RSocketException(RSocketErrorCode.APPLICATION_ERROR, e.toString());
}
}