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

Exception constructor does not contain namespace prefix.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment