异常类是只能在应用程序执行期间加载的类的另一个例子,因为异常在理想情况下(但不一定会遇到这种情况)很少发生。
Exception classes are another example of classes that may not load until well into an application's execution, because exceptions are ideally (though not always) rare occurrences.
测试应用程序和初始化testclient. jsp时,会发生如下的异常。
When testing the application and initializing the TestClient.jsp, the following exception occurs.
TransactionDemo应用程序中的AddRecordswithFailure菜单项演示了当操作过程中发生异常时事务将如何处理。
The Add Records with Failure menu item in the transaction demo application demonstrates what happens to a transaction when an exception occurs sometime during the operation.
想象一下这个情形:应用程序发生了一个异常,异常处理跟踪了该异常,并建立了一个日志文件。
Imagine this scenario: Your application gets an exception, the exception handler kicks in and you have set it up to log to a file.
当你的应用程序发生一个错误或者抛出一个异常时,FFDC可以确保这个错误或者异常被正确的处理,并且任何和这个错误相关的信息都将会被保存下来。
When an error or exception occurs in your application, FFDC ensures that it is dealt with in the correct way, and that any useful information about the error is preserved.
反过来说,EJB 1.0下发生的应用程序异常在某种环境下会自动导致一个事务回滚。
Conversely, application exceptions under EJB 1.0 automatically caused a transaction rollback under certain circumstances.
如果应用程序尝试执行它无权执行的操作,则会发生异常。
If the application attempts to perform an action it does not have permission for, an exception occurs.
承载clr的应用程序可以更改默认行为并指定CLR卸载发生异常的应用程序域,但允许进程继续进行。
An application that hosts the CLR can change the default behavior and specify that the CLR unload the application domain where the exception occurs, but lets the process continue.
如果站点地图包含引用另一站点地图文件的节点,而该文件又位于应用程序之外,则会发生异常。
If a site map contains a node that references another site-map file, and the file location is outside of the application, an exception occurs.
当托管代码抛出异常时发生,在运行时在调用堆栈中搜索应用程序域中的异常处理程序之前。
Occurs when an exception is thrown in managed code, before the runtime searches the call stack for an exception handler in the application domain.
此应用程序块允许开发人员和决策人员针对发生在企业应用程序体系结构层的异常处理创建一致的策略。
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.
当应用程序遇到未经处理的异常时发生。
Occurs when the application encounters an unhandled exception.
当应用程序遇到未经处理的异常时发生。
Occurs when the application encounters an unhandled exception.
应用推荐