You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (JIRA)" <ji...@apache.org> on 2014/01/08 04:32:50 UTC

[jira] [Closed] (THRIFT-2211) Exception constructor does not contain namespace prefix.

     [ https://issues.apache.org/jira/browse/THRIFT-2211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jake Farrell closed THRIFT-2211.
--------------------------------

    Resolution: Fixed
      Assignee: Jan Brauer

committed, thanks for the patch

> Exception constructor does not contain namespace prefix.
> --------------------------------------------------------
>
>                 Key: THRIFT-2211
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2211
>             Project: Thrift
>          Issue Type: Bug
>          Components: Cocoa - Compiler
>    Affects Versions: 0.9.1
>            Reporter: Jan Brauer
>            Assignee: Jan Brauer
>            Priority: Minor
>             Fix For: 0.9.2
>
>         Attachments: THRIFT-2211.patch
>
>
> This is annoying because it makes exception handling even harder than it already is.
> {noformat}
> namespace cocoa Namespace
> /**
>  * Structs can also be exceptions, if they are nasty.
>  */
> exception InvalidOperation {
>   1: i32 what,
>   2: string why
> }
> {noformat}
> {noformat}
> @implementation NamespaceInvalidOperation
> - (id) init
> {
>   return [super initWithName: @"InvalidOperation" reason: @"unknown" userInfo: nil];
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)