O'Reilly logo

Learning Apache Thrift by Krzysztof Rakowski

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

What are exceptions and how to handle them?

In our work, we will concentrate on runtime errors as these are the errors that may occur in your Apache Thrift-enabled application and you can (and should) handle them.

In most programming languages, exceptions work in a similar manner: when an error occurs at runtime, a special object is created. This object inherits from the basic exception or error class, depending on the language, and contains information on the nature of the problem. The execution of the program is interrupted and the exception object is passed to the runtime system (this is called throwing an exception), which, in turn, tries to handle it. Developers have the ability to define various exception handlers, which can catch the exception. ...

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