The goal in interface design is to prevent errors and give the user all the necessary information to complete the tasks. Errors can still occur and should be built around 3 simple rules.
Take this action
- Tell the user what went wrong.
- Be specific without confusing the user.
- Tell the user what to do next.