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

Jan Brauer updated THRIFT-2211:
-------------------------------

    Attachment: THRIFT-2211.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
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to