private void MakeErrorMessage(ErrInfo arg) { currentError.lineNumber = arg.error.Line; currentError.characterNumber = arg.error.CharPositionInLine; currentError.errorMessage = ErrorMessage.General_CustomError; currentError.extraInfo1 = arg.errText; }