Adam Hawkins created THRIFT-2908: ------------------------------------ Summary: Limited use Thrift::ApplicationException in Ruby Key: THRIFT-2908 URL: https://issues.apache.org/jira/browse/THRIFT-2908 Project: Thrift Issue Type: Bug Components: Ruby - Library Affects Versions: 0.9.2 Reporter: Adam Hawkins
I'm implementing a bunch of Thrift servers in Ruby. I'm trying to figure out how to use {{Thrift::ApplicationException}} for error handling. I came across a link on stack overflow [http://stackoverflow.com/questions/27312244/general-error-handling-in-apache-thrift] that documents exactly what I'm trying to do but applied to the delphi library. The fix (THRIFT-2860) has been merged and set for 0.9.3 release. I'm investigating the generated ruby code and it seems {{Thrift::ApplicationException}} is only used in the clients, and never mentioned in any of the server or processor code. Is it possible to implement a similar fix for ruby severs, or should I define a generic exception and have all RPC's throw that as a work around? -- This message was sent by Atlassian JIRA (v6.3.4#6332)