phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3219) RuntimeExceptions should be caught and thrown as SQLException
Date Mon, 29 Aug 2016 23:12:22 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-3219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15447364#comment-15447364
] 

James Taylor commented on PHOENIX-3219:
---------------------------------------

For the most part they do. If you have a specific case where that's not happening, that'd
be much appreciated.

> RuntimeExceptions should be caught and thrown as SQLException
> -------------------------------------------------------------
>
>                 Key: PHOENIX-3219
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3219
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.7.0
>            Reporter: Shehzaad Nakhoda
>
> Guarding against SQLExceptions is how one usually defends against unexpected issues in
a JDBC call. It would be nice if all exceptions thrown by JDBC calls (e.g. PreparedStatement.execute)
would actually get caught and then rethrown as SQLExceptions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message