[seam-issues] [JBoss JIRA] Created: (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:50:39 EDT 2010
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
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