Statement timeout should throw SQLTimeoutException
--------------------------------------------------
Key: DERBY-3076
URL: https://issues.apache.org/jira/browse/DERBY-3076
Project: Derby
Issue Type: Improvement
Components: JDBC
Affects Versions: 10.4.0.0
Environment: JDBC 4.0 driver
Reporter: Knut Anders Hatlen
Priority: Minor
When a query times out (because Statement.setQueryTimeout() has been called), a
plain SQLException is thrown. JDBC 4.0 defines a sub-class SQLTimeoutException
for these errors. Derby should throw SQLTimeoutException if such timeouts occur.
>From SQLTimeoutException's javadoc:
> The subclass of SQLException thrown when the timeout specified by Statement
> has expired.
>
> This exception does not correspond to a standard SQLState.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.