Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2908

Limited use Thrift::ApplicationException in Ruby

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.2
    • Fix Version/s: None
    • Component/s: Ruby - Library
    • Labels:
      None

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ahawkins Adam Hawkins
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: