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

Handling exceptions in Apache Thrift

The errors that you have to care about most in your cross-language applications using Apache Thrift are runtime errors, over which you probably don't have much control. You may not be able to ensure that networks always work flawlessly and hosts are reachable, required files are accessible, and that all data is provided in the required format. Thus, you need to prepare for the worst-case scenario when none of them is working.

Every error has its own specific solution or measure that can be taken to handle it. You have to evaluate your situation and apply the relevant solution; for example, in some applications, when the host is unreachable, it is enough to try to connect to it repeatedly (this is common in mobile ...

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