这里有一个很好的出错消息示例。
另外,如果出现异常则显示出错消息。
Otherwise, an error message is displayed if an exception is encountered.
出错消息是作为开发人员的第一道防线。
Error messages are your first line of defense as a developer.
好的出错消息是重要的。
现在介绍出错消息。
它的消息功能允许它在必要的时候写出出错消息。
Its message functionality lets it write out error messages when required.
在最简单的情况下,我们可以设想一下显示出错消息的情况。
让用户返回注册页面,并且页面顶部显示一条详细的出错消息。
Return the user to the Registration page with a detailed error message at the top of the page.
我们为自己的应用创建了一个报错jsp,它将为我们显示出错消息。
For our application, we created an error JSP that will display error messages for us.
仔细地撰写和编辑你自己版本的嵌入式帮助、出错消息等其他意外事件。
Carefully write and edit your copy for inline help, error messages and other contingencies.
所以启动一个注册了的v3事例时,可能会遇到这样的出错消息对话框。
So you may run into this error message when you attempt to start a registered v3 instance.
它包含检索正确的出错消息并以一种有意义的方式将其显示给用户的逻辑。
It contains the logic to retrieve the correct error message and display it back to the user in a meaningful way.
谁都不想在一台没有配置成显示出错消息的服务器上用PHP开发代码。
You don't want to be developing code in PHP on a server that is not configured to display error messages.
也可以用出错消息为自己服务,因为它们会显示抛出或生成错误的正确代码行。
You can also use error messages to your advantage because they display the exact line of code that threw or generated an error.
例如,使出错消息为红色,并在它们旁边放置红色出错图标,这就是个好主意。
For example, it is a good idea to make error messages red, and to put a red error icon next to them.
信令单元错误检测和校正——废弃检测到的出错消息并请求重新传输。
Signal unit error detection and correction - discards detected erroneous message and requests a re-transmission.
我们可以在任意页面调用这个bean并让它在我们希望的位置打印一条出错消息。
We can call this bean on any page and have it print an error message at just the spot we want it.
当您试图将32位的对象链接到64DB 2应用程序库时,将会返回一条操作系统的连接程序出错消息。
When you attempt to link 32-bit objects against the 64-bit DB2 application library, an operating system linker error message is returned.
ErrorViewBean 封装显示出错消息的逻辑,这些出错消息源于服务器端处理发现的错误。
The ErrorViewBean encapsulates the logic to display an error message from errors found during server-side processing.
如果发生错误(例如删除记录时违反了参照完整性),Update和Delete按钮则使用异常处理程序来显示出错消息。
The Update and Delete buttons use exception handlers to display the error message if something goes wrong (such as referential integrity violations when deleting a record).
不过,请确保portlet的背景色与红色具有足够的对比度,并确保如果没有用红色突出显示出错消息,您仍可以分辨出它。
However, make sure that the portlet's background color has enough contrast with red, and make sure that you can still tell that it is an error message if it is not highlighted in red.
但是,如果当eJB处理请求时遇到错误,servlet将捕获e JB抛出的异常并将Error Bean实例化,封装出错消息。
If, however, an error is encountered when the EJB processes the request, the servlet will catch the exception thrown by the EJB and instantiate an ErrorBean to encapsulate the error message.
encodeMessages和encodeInput方法做的就是这件事,即输出出错消息并为Field组件生成HTML输入的文本字段。
The encodeMessages and encodeInput methods do what you would expect; namely output error messages and generate the HTML input text field for the Field component.
如果结果是一个无效的模型,那么工具将会放弃操作并显示一个出错的消息。
If the result is an invalid model, the tool will abort the operation and display an error message.
如果有什么事情出错,事务将回滚,那么消息将被重新放在目标上,再次进行处理。
If something went wrong and the transaction rolled back, the message was placed back on the destination for reprocessing.
如果收到的回调表明处理WS1消息时出错,聚合应用程序也可能终止调用。
When a received callback indicates errors processing the WS1 message, the converged application may also tear down the call.
该表有两列,其中第一列包含了消息状态(出错、警告等),第二列包含了消息本身。
The table has two columns, the first of which contains the status of the message (error, warning, and so on), the second contains the message itself.
当预期值和实际值不相符时,生成一个消息来指出错误。
When the expected and actual value don't match, a message is generated explaining what went wrong.
更进一步说,即便是有,也只有很少的验证器可以用多种语言(如英语、汉语、法语等)发出错误消息。
Furthermore, few validators, if any, render error messages in multiple languages (English, Chinese, French, and so on.).
准则1可以通过类型检查得到保证,如果在函数中有任何静态存储声明,则抛出错误消息。
Guideline 1 can be ensured by type checking and throwing an error message if there is any static storage declaration in the function.
应用推荐