5 ERROR MESSAGES (错误信息)
原文
Problem description
A number of checks are carried out when a user enters customer data. If the user enters a customer number that already exists, the application displays the error message “customer already exists”. When the user enters letters instead of numbers, the application displays the error message “customer number must consist of numbers”.
Should each different error message be counted as a separate external output or as a separate external inquiry?
Discussion
The different error messages are not seen as separate functions, but as part of the external input, output, or inquiry involved.
The field where the error message is displayed must be counted as a data element type of the function. Therefore, do not count the number of different messages!
Solution
No additional functions are counted for error messages.
翻译
问题描述
当用户输入客户数据时,会执行许多检查。如果用户输入一个已经存在的客户编号,应用程序将显示错误消息“客户已经存在”。当用户输入字母而不是数字时,应用程序会显示错误消息“客户编号必须由数字组成”。
是否应将每个不同的错误消息计算为单独的外部输出或单独的外部查询?
讨论
不同的错误消息不被视为单独的功能,而是作为所涉及的外部输入、输出或查询的一部分。
显示错误消息的字段必须计为功能的数据元素类型。因此,不要计算不同消息的数量。
解决方案
不为错误消息,计算额外的功能。