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

Exception constructor does not contain namespace prefix.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Cocoa - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      This is annoying because it makes exception handling even harder than it already is.

      namespace cocoa Namespace
      
      /**
       * Structs can also be exceptions, if they are nasty.
       */
      exception InvalidOperation {
        1: i32 what,
        2: string why
      }
      
      @implementation NamespaceInvalidOperation
      
      - (id) init
      {
        return [super initWithName: @"InvalidOperation" reason: @"unknown" userInfo: nil];
      }
      

        Attachments

        1. THRIFT-2211.patch
          1 kB
          Jan Brauer

          Activity

            People

            • Assignee:
              bracki Jan Brauer
              Reporter:
              bracki Jan Brauer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: