我可以使用哪些技术来始终显示用户友好的错误消息?

发布于 2024-08-21 01:10:28 字数 60 浏览 3 评论 0原文

我可以使用哪些技术来始终显示用户友好的错误消息?我想我正在寻找能够生成用户友好消息的编程、测试和管理技术。

What techniques can I use to always display user friendly error messages? I guess I'm looking for programming, testing, and management techniques that produce user friendly messages.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

剪不断理还乱 2024-08-28 01:10:28

不确定您的目标是什么,但如果它是用户友好的:

  • 说用户的语言。
  • 不要让用户感到惊讶。
  • 提供清晰的退出消息(如果是对话框)。

Not sure what you are aiming at, but if it is user friendly:

  • Speak the users language.
  • Don't surprise the user.
  • Provide clear exit messages (if it is a dialog).
一萌ing 2024-08-28 01:10:28
  • 始终使用人类语言,不使用技术语言(除非您的受众具有技术头脑)
  • 始终为用户提供要采取的操作,即使该操作是返回
  • 始终将错误消息与 GUI 的其余部分(例如模态弹出窗口)清楚地分开
  • 如果您正在记录错误,如果有直接反馈机制,请始终提供参考号供用户引用
  • 如果在分步过程中发生错误,请始终保留以前的选择
  • 如果错误是验证错误,请清楚解释原因用户输入验证失败,在无效字段旁边显示错误消息(并非全部列在底部)并将焦点设置在无效字段上
  • Always use human language, no tech speak (unless your audience is technically minded)
  • Always provide the user with an action to take, even if that action is go back
  • Always clearly seperate the error message from rest of the GUI e.g. modal popup window
  • If you are logging errors, always provide a reference number for the user to quote if there is a direct feedback mechanism
  • If the error occurs during a step-by-step process always preserve the previous selections
  • If the error is one of validation, clearly explain why the user input has failed validation, display the error message next to the invalid field (not all listed at the bottom) and set focus on the invalid field
人│生佛魔见 2024-08-28 01:10:28

除了这里的答案之外,我总是发现保持错误消息“冷静”是有帮助的。不要用大写字母“出现严重错误,程序必须关闭!”来吓唬用户。用户,尤其是不懂技术的用户,会认为自己做错了什么,并可能会惊慌失措。

保持消息平静,解释情况,并向用户提供纠正问题或联系可以纠正问题的人员的步骤。

In addition to the answers here, I always find that keeping your error messages "calm" is helpful. Don't frighten the user by saying in big caps "THERE WAS A CRITICAL ERROR AND THE PROGRAM MUST SHUT DOWN!" The user, especially if he is not tech savvy, will think that he did something wrong and will likely freak out.

Keep your messages calm, explain the situation, and provide the user with steps to take to either correct the issue or contact someone who can.

邮友 2024-08-28 01:10:28

这只是其中的一部分,但我建议使用 TDD(测试驱动开发)。编写暴露错误的测试并确保程序以正确的方式响应。

换句话说,通过将错误消息作为用户故事的一部分来强调它们的重要性。

This is just one part of it, but I recommend using TDD (test driven development). Write tests that expose errors and make sure that the program responds in the correct fashion.

To put it another way, emphasize the importance of error messages by making them part of your user stories.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文