[ 
https://issues.apache.org/jira/browse/HADOOP-4009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625576#action_12625576
 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-4009:
------------------------------------------------

> Unfortunately, this may endup throwing exceptions not declared in the 
> signature.

It is not possible since the program won't be compiled.

> One must rethrow the deepest declared exception

Should it rethrow the *original/wrapped* exception?  In the example "foo() 
throws A, Ab, Ac", if server throws Abb which is a subclass of Ab.  I think we 
should throw Abb but not Ab.

> Declare HDFS exceptions in the HDFS interface and also in class FileSystem 
> and rethrow the encapsulated exception
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4009
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4009
>             Project: Hadoop Core
>          Issue Type: Sub-task
>            Reporter: Sanjay Radia
>
> Server-side exceptions are encapsulated in the remote exception (as  the 
> class name and the error string ).
> The client side and FileSystem does not declare or thrown the these 
> encapsulated exception.
> Work Items
>  * Declare the exceptions in FileSystem and the HDFS interface (but still as 
> subclasses of IOException)
>  * Rethrow encapsulated declared exceptions if they are the declared 
> exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to