How to: Create User-Defined Exceptions.
如何:创建用户定义的异常。
This is true for all built-in exceptions, but need not be true for user-defined exceptions (although it is a useful convention).
对于所有的内置异常都是如此,不过用户自定义异常就不一定了(尽管这是一个很有用的约定)。
Exceptions cannot be used as data members of user-defined types.
异常不能当作用户定义类型的数据成员使用。
We can process both types of exceptions, the threshold exceptions that are user-defined and the event exceptions for deadlocks.
我们可以处理两种类型的异常:用户定义的阈值异常和针对死锁的事件异常。
We can process both types of exceptions, the threshold exceptions that are user-defined and the event exceptions for deadlocks.
我们可以处理两种类型的异常:用户定义的阈值异常和针对死锁的事件异常。
应用推荐