Your exception hierarchy should begin with something fairly robust and generic, like ApplicationException.
异常层次结构应该从一些十分健壮而又通用的异常入手,如ApplicationException。
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
答案是提供一类更有用的异常,它还包含低级异常。
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
答案是提供一类更有用的异常,它还包含低级异常。
应用推荐