convertToRSocketException function

RSocketException convertToRSocketException(
  1. dynamic e
)

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());
  }
}