Subject | Fb Exceptions in JayBird |
---|---|
Author | James Calfee |
Post date | 2011-01-13T20:50:20Z |
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.
This is the version:
Specification-Title: FirebirdSQL JayBird
Specification-Version: 1.5
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.
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.
This is the version:
Specification-Title: FirebirdSQL JayBird
Specification-Version: 1.5
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.