parseConnectionError function
Implementation
WCException parseConnectionError(WCException e, String url, String type) {
return (e.message != null && e.message!.contains("getaddrinfo ENOTFOUND") ||
e.message!.contains("connect ECONNREFUSED"))
? WCException('Unavailable $type RPC url at $url')
: e;
}