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

Junping Du commented on HADOOP-9447:
------------------------------------

Thanks for the patch. Steve. So you are suggesting we include more info in 
exception like log so user can easily to check the reason for failure. Isn't 
it? Patch looks good to me. However, do we want to define a subclass of 
RuntimeException, i.e. MisConfigRuntimeException (constructed by file name and 
e)? I think it could be generic for using in somewhere else.
                
> Configuration to include name of failing file/resource when wrapping an XML 
> parser exception
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9447
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9447
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>    Affects Versions: 3.0.0
>            Reporter: Steve Loughran
>            Priority: Trivial
>         Attachments: HADOOP-9447-2.patch, HADOOP-9447.patch
>
>
> Currently, when there is an error parsing an XML file, the name of the file 
> at fault is logged, but not included in the (wrapped) XML exception. If that 
> same file/resource name were included in the text of the wrapped exception, 
> people would be able to find out which file was causing problems

--
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

Reply via email to