wrap static method

LcpException wrap(
  1. dynamic e
)

Implementation

static LcpException wrap(dynamic e) {
  if (e is LcpException) {
    return e;
  }
  if (e is SocketException) {
    return network(e);
  }
  return unknown;
}