[
https://issues.apache.org/jira/browse/HADOOP-9093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504648#comment-13504648
]
Daryn Sharp commented on HADOOP-9093:
-------------------------------------
bq. I propose using FileNotFoundException instead of PathNotFoundException as
it is already extensively used. Similarly use AccessControlException instead of
PathAccessException. If folks agree, I will make that change in the next patch.
Alternatively we could at least make these exceptions subclasses of the
exception that I am proposing replacing them with.
I had considered that when I created these exceptions, but wanted all path
exceptions to derive from a common class. I suppose {{PathException}} could be
an interface and we copy-n-paste the base code - which is the main factor I
chose to derive from a base class.
> Move all the Exception in PathExceptions to o.a.h.fs package
> ------------------------------------------------------------
>
> Key: HADOOP-9093
> URL: https://issues.apache.org/jira/browse/HADOOP-9093
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 2.0.2-alpha
> Reporter: Suresh Srinivas
> Assignee: Suresh Srinivas
> Fix For: 2.0.3-alpha
>
> Attachments: HADOOP-9093.patch
>
>
> The exceptions in PathExceptions are useful for non shell related
> functionality as well. Making this available as exceptions under fs will help
> move some of the HDFS implementation code throw more specific exception than
> throwing IOException (for example see HDFS-4209).
--
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