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. These handlers specify the kind of errors they can handle—the type of exception objects that are accepted are listed in the handler's header. The inheritance path is taken into consideration here, so that handlers can be more or less general...