You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2013/06/06 16:05:20 UTC
[jira] [Commented] (HADOOP-9626) Add an interface for any exception
to serve up an Exit code
[ https://issues.apache.org/jira/browse/HADOOP-9626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13677037#comment-13677037 ]
Suresh Srinivas commented on HADOOP-9626:
-----------------------------------------
+1 for the idea.
> Add an interface for any exception to serve up an Exit code
> -----------------------------------------------------------
>
> Key: HADOOP-9626
> URL: https://issues.apache.org/jira/browse/HADOOP-9626
> Project: Hadoop Common
> Issue Type: Improvement
> Components: util
> Affects Versions: 2.1.0-beta
> Reporter: Steve Loughran
> Priority: Minor
>
> Various exception included exit codes, specifically {{Shell.ExitCodeException}}, {{ExitUtils.ExitException()}}.
> If all exceptions that wanted to pass up an exit code to the main method implemented an interface with the method {{int getExitCode()}}, it'd be easier to extract exit codes from these methods in a unified way, so generating the desired exit codes on the application itself
--
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