You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Henrique Mendonca (JIRA)" <ji...@apache.org> on 2011/02/17 19:57:24 UTC
[jira] Issue Comment Edited: (THRIFT-1065) Unexpected exceptions
not proper handled on JS
[ https://issues.apache.org/jira/browse/THRIFT-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995978#comment-12995978 ]
Henrique Mendonca edited comment on THRIFT-1065 at 2/17/11 6:55 PM:
--------------------------------------------------------------------
e.g. if you remove the _throws_ declaration from ThriftTest.thrift:
_void testException(1: string arg) throws(1: Xception err1),_
*void testException(1: string arg),*
and run the JS test (which throws the _unexpected_ exception)
I get something like:
{quote}
fname not defined
var ret = input.readStructBegin(fname)
{quote}
was (Author: henrique):
e.g. if you remove the _throws_ declaration from:
_void testException(1: string arg) throws(1: Xception err1),_
*void testException(1: string arg),*
ThriftTest.thrift and run the JS test (which throws the _unexpected_ exception)
I get something like:
{quote}
fname not defined
var ret = input.readStructBegin(fname)
{quote}
> Unexpected exceptions not proper handled on JS
> ----------------------------------------------
>
> Key: THRIFT-1065
> URL: https://issues.apache.org/jira/browse/THRIFT-1065
> Project: Thrift
> Issue Type: Bug
> Components: JavaScript - Library
> Affects Versions: 0.6
> Reporter: Henrique Mendonca
> Priority: Minor
> Labels: javascript, thrift
> Fix For: 0.7
>
> Attachments: THRIFT-1065-read-undefined-exceptions2.patch
>
>
> Following THRIFT-550 and THRIFT-807:
> We still get JS errors when any undeclared exception is thrown (if not defined on the service IDL)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira