Returns true if the exception was caused by error with code errorCode on macOS.
true
errorCode
bool isMacOsError(int errorCode) => Platform.isMacOS && errorCode == this.osError?.errorCode;