When an SQLException occurs, you should see something similar to Figure 25.
当发生一个SQLException异常时,您应该会看到类似于图25所示的内容。
You usually call next SQLException to return the next exception in the chain.
通常可以通过调用nextSQLException来返回链中的下一个异常。
In the next section, you will code your own exception handler to handle the SQLException.
在下一节中,您将对异常处理程序进行编码,以便处理SQLException异常。
As mentioned in the previous section, you can code your own exception handler to handle the SQLException.
正如上一节中提到的一样,您可以编写自己的异常处理程序来处理SQLException异常。
If the database cannot be created, a SQLException is thrown indicating that the database cannot be found.
如果无法创建数据库,就会抛出SQLException,表示无法找到该数据库。
If the database cannot be created, a SQLException is thrown, indicating that the database cannot be found.
如果无法创建数据库,就会抛出SQLException,表示无法找到该数据库。
If you do not close the XMLStreamWriter object prior to invoking the updater methods, SQLException gets thrown.
如果没有在调用updater方法之前关闭XMLStreamWriter对象,则会抛出SQLException。
The error is SQLException, error code ORA-00942; specifically, an expected database table or view does not exist.
该错误是SQLException,错误代码为OR A- 00942。很显然,是因为期望的数据库表或视图不存在。
In the exception declaration, if an SQLException occurs, the control will be redirected to exception.jsp. Our exception.jsp.
在异常声明中,如果发生一个SQLException异常,那么控制流程就会被重定向到exception. jsp文件。
When Derby shuts down a database, it throws an SQLException with an SQLState of 08006, which is why the catch block ignores this exception.
Derby关闭数据库时,将抛出SQLException,使用08006作为SQLState,这就是catch块忽略此异常的原因。
The SQLWarning class inherits from the SQLException class; however, a SQL warning is less severe than an SQL exception, so it's better to handle them separately.
sqlwarning类继承自sqlexception类;但是SQL警告不如SQL异常那么严重,所以更好的方法是分别处理它们。
First, it was meant to prevent someone assigning, say, an SQLException to t (which would be a legal assignment, but then would no longer be an acceptable candidate for rethrow).
首先,这是为了防止人为分配,就是所说的针对t 的SQLException(这将是一种合法的指定,但是随后将不再是重新抛出的恰当选择)。
When a DAO operation fails the SQLException or other persistence technology-specific exception should be translated to ensure that DAO interfaces do not provide a leaky abstraction
当DAO操作失败时,SQLException或者其他特殊持久化技术的异常应该被翻译,以确保DAO接口不会有漏掉的抽象。
When a DAO operation fails the SQLException or other persistence technology-specific exception should be translated to ensure that DAO interfaces do not provide a leaky abstraction
当DAO操作失败时,SQLException或者其他特殊持久化技术的异常应该被翻译,以确保DAO接口不会有漏掉的抽象。
应用推荐