Subject Re: [Firebird-Java] Fb Exceptions in JayBird
Author James Calfee
>Can you create a small java program that simulates both cases?
Sure it is as small as I can make it. I found a few more cases to test.
It is attached.

Also, I had the same results after I upgraded from JayBird 1.5 to
jaybird-full-2.1.6.jar. I'm still using FB 1.5 for every test.

In my case, the program runs prints "Done".

On Fri, 2011-01-14 at 09:18 +0100, Roman Rokytskyy wrote:
> > I'm working with the JayBird JDBC driver and wondering how I can get
> the
> > name of the Firebird exception. I can see the name of the exception
> > only if there are no additional information provided when the
> exception
> > is thrown.
> >
> > Example:
> > When this happens: EXCEPTION E_POBILLITM_EXISTS;
> > I see this: e.getMessage().equals("E_POBILLITM_EXISTS")
> >
> > When this happens: EXCEPTION E_POBILLITM_EXISTS 'PO Bill exists';
> > I see this: e.getMessage().equals("PO Bill exists");
> >
> > In both cases, I need to know that this is a E_POBILLITM_EXISTS
> > exception, but the underlying FBSQLException does not have this
> > information.
> Can you create a small java program that simulates both cases?
> I need to check whether Firebird sends both values over the wire, but
> you would spare me time with preparing this case.
> If the info is there, the fix is easy. If not... well, we cannot do
> anything then.
> Roman

Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.

[Non-text portions of this message have been removed]