The answer is to provide a more useful type of exception that also contains a lower-level exception. Listing 1 shows a simple ApplicationException that does just this
答案是提供一类更有用的异常,它还包含低级异常。
Friday USES level 2 and since Thursday USES level 1, a lower level, RMAN will backup changes since Thursday.
星期五使用级别2,由于星期四使用级别1——较低的级别,所以RMAN将备份星期四以后的更改。
In a typical software system, function calls flow downward from higher-level components to lower-level ones; whereas events percolate up in the opposite direction. Figure 1 illustrates this pattern.
在典型的软件系统中,函数的调用流是从较高级部分到低级部分进行的;而事件是以相反的方向过滤的,如Figure 1所示。
应用推荐