O'Reilly logo

Expert Oracle and Java Security: Programming Secure Oracle Database Applications with Java by David Coffin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exceptions

Good and secure code must have a plan in place for handling errors. Java has included a framework on which we can build error (exception) handling. You have several choices when dealing with exceptions, and Java helps you accomplish any of the following that you choose:

  • Do nothing with the exception, but throw it to the code that called the code with the exception. Throwing exceptions generates a stack trace, which lists the place (line number and code) where the exception occurred and the place that called this block of code (method) and the place that called that method, and so on. You can print the stack trace and see where you were and what happened. Often, the exception itself will tell you why the exception happened; no further ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required