[ http://issues.apache.org/jira/browse/DERBY-2199?page=all ]

Knut Anders Hatlen updated DERBY-2199:
--------------------------------------

    Attachment: d2199.diff

Attaching a patch (d2199.diff) which makes assertSQLState() use initCause() to 
preserve the original exception, if initCause() is available on that JVM.

> BaseJDBCTestCase.assertSQLState should preserve the original exception
> ----------------------------------------------------------------------
>
>                 Key: DERBY-2199
>                 URL: http://issues.apache.org/jira/browse/DERBY-2199
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d2199.diff
>
>
> If assertSQLState() fails, only the SQLState is preserved. It should also 
> preserve the original exception so we can see the message and the stack trace.

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

        

Reply via email to