You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2014/05/02 22:42:15 UTC

[jira] [Commented] (THRIFT-2506) Update TProtocolException error codes to be used consistently throughout the library

    [ https://issues.apache.org/jira/browse/THRIFT-2506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988210#comment-13988210 ] 

Roger Meier commented on THRIFT-2506:
-------------------------------------

that's great!
+1

What about a doc/Exceptions.md file to list and briefly describe all known Exceptions:
* TApplicationException
* TProtocolException
* TTransportException
* etc.

-roger

> Update TProtocolException error codes to be used consistently throughout the library
> ------------------------------------------------------------------------------------
>
>                 Key: THRIFT-2506
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2506
>             Project: Thrift
>          Issue Type: Bug
>          Components: AS3 - Library, C glib - Library, C# - Library, D - Library, Delphi - Library, Go - Library, Haskell - Library, Java - Library, JavaScript - Library, Lua - Library, OCaml - Library, Perl - Library, PHP - Library, Python - Library, Ruby - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>             Fix For: 0.9.2
>
>         Attachments: thrift-2506-tprotocolexceptioncodes.patch
>
>
> The error codes for TProtoException are not fully consistent.
> {code}
>   enum TProtocolExceptionType
>   { UNKNOWN = 0
>   , INVALID_DATA = 1
>   , NEGATIVE_SIZE = 2
>   , SIZE_LIMIT = 3
>   , BAD_VERSION = 4
>   , NOT_IMPLEMENTED = 5
>   , DEPTH_LIMIT = 6
>   };
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)