You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "David W. Van Couvering" <Da...@Sun.COM> on 2005/11/11 00:20:01 UTC
Common code and client SQL Exceptions
Hi, all. As Dan mentioned, we need to migrate our SQLException
mechanisms to no longer inherit from java.sql.SQLException, because JDBC
4.0 has its own hierarchy of subclasses of SQLException.
It makes sense to do this migration on the client side as part of moving
the client exception code to use internationalized message strings.
However, this is not a small change. Right now every public JDBC method
in the client code throws org.apache.derby.client.am.SqlException. I
would also need to change all the public method codes to catch our
internal exception and transmogrify these into java.sql.SQLException (or
subclasses thereof).
Rather than try to accomplish all this as part of my initial
contribution of the shared code infrastructure, I'd like to separate the
two. So, what I am proposing is that the common area include message
and exception utilities which are used by the engine, but not at this
point by the network client.
If anyone has any objections, please let me know.
Thanks,
David
Re: Common code and client SQL Exceptions
Posted by "David W. Van Couvering" <Da...@Sun.COM>.
Right, thanks.
David
Daniel John Debrunner wrote:
> David W. Van Couvering wrote:
>
>
>
>>Rather than try to accomplish all this as part of my initial
>>contribution of the shared code infrastructure, I'd like to separate the
>>two. So, what I am proposing is that the common area include message
>>and exception utilities which are used by the engine, but not at this
>>point by the network client.
>>
>>If anyone has any objections, please let me know.
>
>
> No objections, any forward progess is good. When you (or anyone else)
> starts to convert the client, it also need not be in one submission,
> perfectly fine to convert a handful of files at a time. (as long as
> tests pass etc.etc.)
>
> Dan.
>
Re: Common code and client SQL Exceptions
Posted by Daniel John Debrunner <dj...@debrunners.com>.
David W. Van Couvering wrote:
> Rather than try to accomplish all this as part of my initial
> contribution of the shared code infrastructure, I'd like to separate the
> two. So, what I am proposing is that the common area include message
> and exception utilities which are used by the engine, but not at this
> point by the network client.
>
> If anyone has any objections, please let me know.
No objections, any forward progess is good. When you (or anyone else)
starts to convert the client, it also need not be in one submission,
perfectly fine to convert a handful of files at a time. (as long as
tests pass etc.etc.)
Dan.