Subject | Exceptions thrown by firebird |
---|---|
Author | Fidel Viegas |
Post date | 2008-03-16T20:46:03Z |
Hello all,
I was wondering what the best mechanism to work with exceptions
between Java and Firebird is. I am throwing an exception in Firebird
inside a trigger, and I would like to get the message in Java. What I
get is the whole message from Firebird. What I need to extract is the
message I created for the stored procedure. For instance, let's I have
declared the following exception:
create exception belowzero 'Value is below zero';
How do I get just the 'Value is below zero' string from java?
Thanks in advance,
Fidel.
I was wondering what the best mechanism to work with exceptions
between Java and Firebird is. I am throwing an exception in Firebird
inside a trigger, and I would like to get the message in Java. What I
get is the whole message from Firebird. What I need to extract is the
message I created for the stored procedure. For instance, let's I have
declared the following exception:
create exception belowzero 'Value is below zero';
How do I get just the 'Value is below zero' string from java?
Thanks in advance,
Fidel.