Skip to Main Content
The Definitive Guide to Jython: Python for the Java™ Platform
book

The Definitive Guide to Jython: Python for the Java™ Platform

by Josh Juneau, Jim Baker, Victor Ng, Leo Soto, Frank Wierzbicki
March 2010
Beginner to intermediate content levelBeginner to intermediate
544 pages
13h 28m
English
Apress
Content preview from The Definitive Guide to Jython: Python for the Java™ Platform

Chapter 7. Exception Handling and Debugging

Any good program makes use of a language's exception handling mechanisms. There is no better way to frustrate an end-user than by having them run into an issue with your software and displaying a big ugly error message on the screen, followed by a program crash. Exception handling is all about ensuring that when your program encounters an issue, it will continue to run and provide informative feedback to the end-user or program administrator. Any Java programmer becomes familiar with exception handling on day one, as some Java code won't even compile unless there is some form of exception handling put into place via the try-catch-finally syntax. Python has similar constructs to that of Java, and we'll ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython

Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython

Richard Hightower
Jython Essentials

Jython Essentials

Samuele Pedroni, Noel Rappin

Publisher Resources

ISBN: 9781430225270Purchase book