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

Exception constructor does not contain namespace prefix.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Cocoa - Compiler
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: