isLinuxError method

bool isLinuxError(
  1. int errorCode
)

Returns true if the exception was caused by error with code errorCode on Linux.

Implementation

bool isLinuxError(int errorCode) =>
    Platform.isLinux && errorCode == this.osError?.errorCode;