InternetConnectionIssueFailure.fromSocketException constructor

InternetConnectionIssueFailure.fromSocketException(
  1. SocketException e
)

Implementation

factory InternetConnectionIssueFailure.fromSocketException(SocketException e) {
  return InternetConnectionIssueFailure(
    original: e.message,
    port: e.port,
    domain: e.address?.host,
    address: e.address?.address,
    osErrorCode: e.osError?.errorCode,
    osErrorMessage: e.osError?.message,
  );
}