|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.gds.GDSExceptionHelper
public class GDSExceptionHelper
This class is supposed to return messages for the specified error code.
It loads all messages during the class initialization and keeps messages
in the static java.util.Properties
variable.
Nested Class Summary | |
---|---|
static class |
GDSExceptionHelper.GDSMessage
This class wraps message template obtained from isc_error_msg.properties file and allows to set parameters to the message. |
Constructor Summary | |
---|---|
GDSExceptionHelper()
|
Method Summary | |
---|---|
static GDSExceptionHelper.GDSMessage |
getMessage(int code)
This method returns a message for the specified error code. |
static java.lang.String |
getSQLState(int code)
Get the SQL state for the specified error code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GDSExceptionHelper()
Method Detail |
---|
public static GDSExceptionHelper.GDSMessage getMessage(int code)
code
- Firebird error code
GDSExceptionHelper.GDSMesssage
class
where you can set desired parameters.public static java.lang.String getSQLState(int code)
code
- Firebird error code
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |