现在,处于try错误处理语句中,继续从Excel工作簿收集信息,我们先从它的工作表开始。
Now, staying within the try error handling statement, proceed to gather information from the Excel workbook, starting with its sheets.
在DataAccess子系统内部实际上已经有了很多东西:SQL语句生成,错误处理,结果集管理,等等。
There is really a lot going on inside the DataAccess subsystem: generation of SQL statements, error handling, result set management, etc.
乐观事务锁不能用于在单个update语句中更新数据行集合,因此在这种情况下,很难进行错误处理。
Optimistic transaction locking should not be used to update sets of rows in a single update statement, as error handling in this case is very difficult.
对于这两种平台上的数据库,您都可以声明错误处理程序,如果带有特殊的错误代码(SQLCODE或SQLSTATE)的sql语句失败,那么该处理程序将判定应采取哪些措施。
For both databases you can declare error handlers that will determine what action are taken if an SQL statement fails with a particular error code (SQLCODE or SQLSTATE).
不精确地讲,包含System.err.println()语句的catch块可以被认为是错误处理,这是一个非常拙劣的方法。
While a catch block with a System.err.println() statement might be considered error-handling in the loosest sense of the word, it's a pretty poor approach.
在这本书中,您将永远看不到这些语句,我们将编写测试,错误处理,验证码,并确保我们开发安全的应用程序。
In this book, you will never see statements like those as we will write tests, error handling, validation code, and be sure we develop a secure application.
该错误将在错误处理例程中得到处理,然后控制权将返回到导致错误的语句。
The error is handled in the error-handling routine, and control is then returned to the statement that caused the error.
但是断言语句不是错误处理代码的替代物。
Assertion statements are not a substitute for error-handling code, however.
但是断言语句不是错误处理代码的替代物。
Assertion statements are not a substitute for error-handling code, however.
应用推荐