You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jan Brauer (JIRA)" <ji...@apache.org> on 2013/09/26 11:36:02 UTC
[jira] [Updated] (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 ]
Jan Brauer updated THRIFT-2211:
-------------------------------
Description:
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}
was:
This is annoying because it makes exception handling even harder than it already is.
> 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
>
>
> 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