Bad habit: Not handling errors at all.
不良习惯:根本没有错误处理代码。
Handling errors properly makes your code more robust.
适当地处理错误会使代码更加健壮。
Handling errors and suggesting user names during registration.
在注册过程中处理错误和提示用户名。
The script is pretty cavalier about handling errors, choosing to die at every opportunity.
脚本在处理错误方面有些随意,在任何可能的情况下都会选择die 。
As you can see, most of the work is in handling errors as it should be in such simple code.
如您所见,大部分工作是处理错误,因为在这样简单的代码中它也会出现。
It's also easy to register with SAX, so handling errors is just a few lines of code away.
它可以很容易地注册SAX,处理错误时只需要几行代码。
This section contains some general rules to consider when handling errors in your wizard.
本节包含在向导中处理错误时要考虑的一些通用规则。
If you've got code like this, you're well on your way to handling errors in your XML processing.
如果使用这样的代码,那么在XML处理中就可以很好地处理错误。
One great benefit of handling errors this way is that all of the errors are printed at once.
以这种方式处理错误的一个最大的好处是所有这些错误都会立刻打印。
This facility provides a pretty flexible means of handling errors without requiring you to be overly verbose.
此功能为处理错误提供了非常灵活的方法,无需进行大量的工作。
The precompiler improved improves the mechanism of handling errors in C language, and increased increases software development efficiency.
这个预编译器改进了C语言错误处理机制,提高了软件开发效率。
Handling errors with the code already covered is fairly easy at this point, especially because you're already returning errors with specific IDs that point to the problem.
此时,使用上述代码处理错误是较为容易的。特别是您已经返回错误,且错误中含有指向可能出现问题的具体ID。
That sounds overly simple, but taking even 10 percent more time to work on handling errors gracefully or even preventing errors from occurring at all will dramatically improve user experience.
这听起来很简单,但是用10%的额外时间来轻松处理错误或阻止错误发生将极大地改进用户体验。
Send the errors to another macro process for further handling.
将错误发送到另一个宏流以进行进一步处理。
Given the importance of the information you're storing in your database, proper handling of both database errors and warnings can be vital to your business.
由于在数据库中存储的信息的重要性,适当地处理数据库错误和警告对于业务是很重要的。
In addition, you have the option of handling runtime errors when a variable is not initialized.
另外,当一个变量尚未初始化时,您可以选择处理运行时错误。
You gain, though, safer handling of errors and the ability to re-use the plug-in over a wider range of circumstances.
但是您可以更安全地对错误进行处理,并且能够在更广泛的范围内重用该插件。
When it comes to handling XML parsing and processing errors, the key is not really a particular SAX interface as much as it is understanding what drives XML processing.
当涉及处理xml解析和处理错误,关键问题不只是一个特定的SAX接口,还需要理解是什么驱动XML处理。
So fatal errors fall under that second principle of good error handling: error handling isn't disruptive... unless it has to be.
所以,致命错误归于第二个优秀错误处理原则:错误处理是不中断的,除非有必要。
Fault handlers - Use of fault handlers is the most popular way of handling service errors returned from the service invocations initiated from within the orchestrations.
错误处理器——错误处理器是解决编排向外调用过程中返回的错误的最受欢迎的方式之一。
Handling user errors and application exceptions.
处理用户错误和应用程序异常。
From the error Handling TAB, Roslyn can customize how errors are reported, as shown in Figure 30.
Roslyn可以在ErrorHandling选项卡中定制如何报告错误,如图30所示。
Exception handling — Points when exceptions and errors are thrown and handled.
异常处理(Exception handling)——抛出和处理异常与错误时的点。
There is no graceful handling for out-of-memory errors (malloc simply assumes success).
没有很好的内存不足处理方案(malloc只假定内存分配是成功的)。
This article explains the process that team members used to migrate the V4.3 portlets, summarizes the errors they encountered, and offers Suggestions for handling the errors.
本文阐述了小组成员用来迁移V 4.3portlet的流程,总结他们遇到的错误并为解决错误提供建议。
The key point about replication conflicts is that handling the errors is domain-specific.
关于复制冲突的关键点是处理错误是特定于域的。
Having standard business error codes helps applications consume these services easily in terms of handling the service errors.
就处理服务出错而言,标准的业务错误代码有助于应用程序更得心应手地使用这些服务。
The code in Listing 2 represents an exception-handling structure for file (IOException) and number conversion (ParseException) errors.
清单2中的代码给出了一个针对文件(IOException)和数字转换(ParseException)错误的异常处理结构。
The code in Listing 2 represents an exception-handling structure for file (IOException) and number conversion (ParseException) errors.
清单2中的代码给出了一个针对文件(IOException)和数字转换(ParseException)错误的异常处理结构。
应用推荐