[ 
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)

Reply via email to