如果抛出一个异常,连接和流就会被关闭。
If an exception is thrown, the connection and stream are closed.
这是可能的析构函数抛出一个异常。
因此,本机返回的结果会造成立即抛出一个异常。
The return from the native will therefore cause an exception to be thrown immediately.
这是抛出一个异常,右。
如果数目大于或等于3,它将抛出一个异常。
If the number is more than or equal to three, it throws an exception.
如果这个列表是null,require会抛出一个异常。
如果没有找到有具体指定名称的连接字符串,就会抛出一个异常。
If no connection string is found with the specified name, an exception is thrown.
否则,抛出一个定制的异常。
而同样的程序作为一个单独的EXE运行时可能不会抛出异常。
The same program running as a standalone EXE may not throw the exception.
抛出一个只读连接异常
将出错的代码包装在一个try块中,并捕捉抛出的异常。
Wrap a try block around the offending code, and catch any exceptions that are thrown.
这个异常会暂停这一过程,就像初始代码一样,只不过初始代码会抛出一个BuildException。
The exception halts the process much like the original code, which threw a BuildException.
类装入器能够抛出的另一个异常是ClassCastException。
Another exception that can be thrown by the class loader is ClassCastException.
类装入器能够抛出的另一个异常是ClassCastException。
Another exception that can be thrown by the class loader is ClassCastException.
应用推荐