在这种情况下,我要讨论错误处理的三个方面:状态码,结构异常处理和错误检测。
In this section, I 'll describe three aspects of error handling: status codes, structured exception handling, and bug checks.
原来的JAXB代码无条件地验证文档的结构,如果发现错误,则抛出异常并中止处理。
The original JAXB code unconditionally verified the structure of documents, throwing an exception and aborting the processing if an error was found.
清单2中的代码给出了一个针对文件(IOException)和数字转换(ParseException)错误的异常处理结构。
The code in Listing 2 represents an exception-handling structure for file (IOException) and number conversion (ParseException) errors.
可以通过两种方式来处理异常情况:架构师可以对新的应用程序的体系结构强加一些限制和约束,使其遵循现有的体系结构构造。
Exceptions can be dealt with in two ways: The architects can impose limitations and constraints on the architecture of the new application so that it follows the existing architectural constructs.
SpringDAO:JDBC DAO抽象层提供了有意义的异常层次结构,可用该结构来管理异常处理和不同数据库供应商抛出的错误消息。
Spring DAO: the Spring JDBC DAO abstraction layer offers a meaningful exception hierarchy for managing the exception handling and error messages thrown by different database vendors.
层次2是包括事件和异常处理的详细建模,它描述为分析式BPMN。它使用了多种结构的BPMN。
Level 2 can be used for detailed modeling including event and exception handling and is described as analytical BPMN. It USES a wide range of BPMN constructs.
PL/SQL是ORACLE的过程化语言,包括一整套的数据类型、条件结构、循环结构和异常处理结构。
PL/SQL is a process language of ORACLE, including a complete set of data categories, conditional structure, loop structure and exceptional processing structure.
现在大多数的程序设计语言提供了异常处理机制,但程序中的异常结构会影响数据流分析。
Recently, most program languages have provided the exception handling, but the exception handling in the program can affect data flow analysis.
在结构化异常处理中,代码块是封装的,每个块有一个或几个关联的处理程序。
In structured exception handling, blocks of code are encapsulated, with each block having one or more associated handlers.
每个线程都维护异常处理程序、调度优先级和一组系统用于在调度该线程前保存线程上下文的结构。
Each thread maintains exception handlers, a scheduling priority, and a set of structures the system USES to save the thread context until it is scheduled.
在使用具有析构函数的对象的函数中,不应使用结构化异常处理。
You should not use structured exception handling in functions that use objects with destructors.
因此,你提供你自己的异常层次结构,您可以在单一地点处理。
Therefore, you provide your own exception hierarchy that you can handle in single place.
结构化异常处理是一种控制结构,它包含异常、已隔离的代码块和用于创建异常处理机制的筛选器。
Structured exception handling is a control structure that contains exceptions, isolated blocks of code, and filters to create an exception-handling mechanism.
另外,每个线程都维护异常处理程序、安排优先级和一组结构,线程等待安排时系统在这些结构中保存线程上下文。
In addition, each thread maintains exception handlers, a scheduling priority, and a set of structures in which the system saves the thread context while the thread is waiting to be scheduled.
使用结构化异常处理,您的代码就可以区分不同类型的错误并做出相应响应。
With structured exception handling, your code can differentiate between different types of errors and react accordingly.
列出使用结构化异常处理时经常遇到的错误并说明如何纠正这些错误。
Lists errors commonly encountered when using structured exception handling and describes how to correct them.
概述结构化异常处理的优点及结构。
Provides an overview of the advantages and structures of structured exception handling.
此应用程序块允许开发人员和决策人员针对发生在企业应用程序体系结构层的异常处理创建一致的策略。
Developers and policy makers can use this application block to create a consistent strategy for processing exceptions that occur throughout the architectural layers of enterprise applications.
此应用程序块允许开发人员和决策人员针对发生在企业应用程序体系结构层的异常处理创建一致的策略。
Developers and policy makers can use this application block to create a consistent strategy for processing exceptions that occur throughout the architectural layers of enterprise applications.
应用推荐