Introduction

When writing Java programs to connect to JSTP using JDBC or SQLJ, you have to ensure that the application will be able to handle errors that occur during runtime. Several types of errors can occur, for example

  • Incorrect connection information is provided and therefore the connection is not successful.

  • JSTP database might not be available.

  • The table you are trying to manipulate might not exist.

  • The user of the application might not have enough privileges to perform the desired select, insert, update, or delete on the specified table.

Your application should include provisions to ensure that it can handle all these errors and not crash. In this chapter, we will discuss how exception handling can be implemented in JavaStop. Specifically, ...

Get e-Commerce Applications Using Oracle8i and Java from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.