adj. informative
安全性层级10或以下的讯息是告知性的讯息,用以指出问题产生的原因是使用者输入了错误的资讯。
Messages with a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered.
如果您选择在自己的系统中使用该代码,一定要检查是否会返回位置并且如果未对某个位置进行解析时为用户呈现一条告知性的错误消息。
If you choose to use this code in your own system be sure to check if a location is returned and present an informative error message to the user if a location isn't resolved.
下面是错误处理的第三个原则:错误处理要有告知性。
Given that, you're left with the third principle of error handling: error handling is informative.
应用推荐