]
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: