One of the requirements of an application I am working on is to display a message to the user if they are unable to connect to the database.
I need to display a "database down" message to the user if something is wrong with the database. I need to send an "invalid username/password" message to the user for invalid logons.
Basically how I am handling this is to parse out the error code and then based on that displaying the relevant message. However, with literally thousands of Oracle error codes out there, I feel this might not be a good idea.
I need to do this on the client because I can't touch the oracle procedures.
I figured it might be a good idea to ask someone who may have handled this situation before.
I need to display a "database down" message to the user if something is wrong with the database. I need to send an "invalid username/password" message to the user for invalid logons.
Basically how I am handling this is to parse out the error code and then based on that displaying the relevant message. However, with literally thousands of Oracle error codes out there, I feel this might not be a good idea.
I need to do this on the client because I can't touch the oracle procedures.
I figured it might be a good idea to ask someone who may have handled this situation before.