Subject | Re: Need Exception Listing for RC3 Driver |
---|---|
Author | jbovitzii <jlb@rocsoft.com> |
Post date | 2003-02-14T15:35:04Z |
Hi Roman,
Thanks so much for your help.
I will continue with my testing and investigate the source code you
indicate.
If I do happen to get a good list together, I will try to post some
documentation...
Best Regards,
James L. Bovitz II
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy
<rrokytskyy@a...>" <rrokytskyy@a...> wrote:
Thanks so much for your help.
I will continue with my testing and investigate the source code you
indicate.
If I do happen to get a good list together, I will try to post some
documentation...
Best Regards,
James L. Bovitz II
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy
<rrokytskyy@a...>" <rrokytskyy@a...> wrote:
> Hi,using
>
> > I am experimenting with replacing Interclient/Interserver with
> > Jaybird RC3 in a project I am currently working on Jbuilder7
> > DataExpress components.thrown
> >
> > I have current code that deals with exceptions that might be
> > when opening the database connection. I would like to usesomething
> > similar with the Jaybird driver but could not find anyoperations
> > documentation regarding the Exception types that various
> > throw.pretty
>
> We do not have a hierarchy of exceptions, because it migh be
> big. We throw SQLException subclass that returns you Firebirderror
> code if it is available (there might be other exceptions relatedto
> JCA architecture). List of constants can be found in API guide orin
> Language Reference or in class org.firebirdsql.gds.ISCConstants.
>
> Your catch clause should look like this:
>
> try {
>
> //... do something here
>
> } catch(SQLException ex) {
>
> switch(ex.getErrorCode()) {
>
> case ISCConstants.isc_read_only :
> throw new MyReadOnlyException();
> ....
>
> default :
> throw new MyDefaultException();
> }
> }
>
> > Is this documented anywhere?
>
> Probably it is not documented anywhere. Rick, can you include this
> FAQ and release notes?
>
> Best regards,
> Roman Rokytskyy