You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Shelan Perera (Updated) (JIRA)" <ji...@apache.org> on 2012/03/30 07:00:42 UTC

[jira] [Updated] (AXIOM-409) Exception chaining not handled properly causing missing information

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

Shelan Perera updated AXIOM-409:
--------------------------------

    Attachment: exception-chaining-1.1.patch

restored appending e.getMessage() to message.
                
> Exception chaining not handled properly causing missing information
> -------------------------------------------------------------------
>
>                 Key: AXIOM-409
>                 URL: https://issues.apache.org/jira/browse/AXIOM-409
>             Project: Axiom
>          Issue Type: Improvement
>            Reporter: Shelan Perera
>            Priority: Minor
>         Attachments: exception-chaining-1.1.patch, exception-chaining.patch
>
>
> As an example
> catch (XMLStreamException e) {
>             log.error("Could not get parser from data source for element " +
>                     getPrintableName(), e);
>             throw new RuntimeException("Error obtaining parser from data source:" + e.getMessage() );
>         }
> without using which will preserve information for later usage
>    throw new RuntimeException("Error obtaining parser from data source", e );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org