You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Lars Corneliussen (JIRA)" <ji...@apache.org> on 2011/03/11 07:08:59 UTC

[jira] Updated: (NPANDAY-83) do not hide originating exceptions

     [ https://issues.apache.org/jira/browse/NPANDAY-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Corneliussen updated NPANDAY-83:
-------------------------------------

    Fix Version/s:     (was: Backlog)
                   1.3.1-incubating

> do not hide originating exceptions
> ----------------------------------
>
>                 Key: NPANDAY-83
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-83
>             Project: NPanday
>          Issue Type: Bug
>            Reporter: jedioetzi
>            Priority: Minor
>             Fix For: 1.3.1-incubating
>
>
> for diagnostic reasons would be preferrable, by throwing exceptions, to include the originating error:
> use 
> ..
> catch (Exception e) {
> throw new ArtifactInstallationException( "NPANDAY-001-012: Unable to read pom file", e );
> }
> instead of
> throw new ArtifactInstallationException( "NPANDAY-001-012: Unable to read pom file" );
> or throw new ArtifactInstallationException(
>                     "NPANDAY-001-014: Unable to store model: Message = " + e.getMessage() );

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira