Report an error with errorName and errorCode directly without any action.
errorName
errorCode
void reportError(String? errorName, int? errorCode, {Platform? platform});