5 NESMA 错误信息案例分析

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.

翻译

问题描述

当用户输入客户数据时,会执行许多检查。如果用户输入一个已经存在的客户编号,应用程序将显示错误消息“客户已经存在”。当用户输入字母而不是数字时,应用程序会显示错误消息“客户编号必须由数字组成”。

是否应将每个不同的错误消息计算为单独的外部输出或单独的外部查询?

讨论

不同的错误消息不被视为单独的功能,而是作为所涉及的外部输入、输出或查询的一部分。

显示错误消息的字段必须计为功能的数据元素类型。因此,不要计算不同消息的数量。

解决方案

不为错误消息,计算额外的功能。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值