[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4625) Include exception cause when UIAttachment fails to read DataSource

Kasper Sørensen (JIRA) jira-events at lists.jboss.org
Tue Mar 30 13:52:37 EDT 2010


     [ https://jira.jboss.org/jira/browse/JBSEAM-4625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kasper Sørensen updated JBSEAM-4625:
------------------------------------

    Attachment: ui-attachment-exception.patch


proposed patch

> Include exception cause when UIAttachment fails to read DataSource
> ------------------------------------------------------------------
>
>                 Key: JBSEAM-4625
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4625
>             Project: Seam
>          Issue Type: Patch
>          Components: Mail
>    Affects Versions: 2.2.1.CR1
>            Reporter: Kasper Sørensen
>            Assignee: Pete Muir
>         Attachments: ui-attachment-exception.patch
>
>
> If something goes wrong when reading an attachment it is really hard to find out what because the exception thrown does not include (or log) the cause of the error.
> See attached patch (or just this code snippet which fixes the issue):
> (line 155 - 165)
>              catch (Exception e) 
>              {
>                  if (value != null)
>                  {
>                      throw new IllegalStateException("Error accessing " + value, e);
>                  }
>                  else
>                  {
>                      throw new IllegalStateException("Error accessing " + getValueExpression("value").getExpressionString(), e);
>                  }
>             }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the seam-issues mailing list