| Start |
|---|
| Define custom exception, raise it and see where it comes from To illustrate this, here is a function that has 3 different "wrong" behaviors
Feel free to adapt it to your standards: Giving on a regular database: Remember that exception are here to handle rare cases. I saw applications who raised an exception at every access, just to ask for user password, saying "not connected"... so much computation waste. |
| Handling connexion error exceptions Each standard Oracle error is associated with an error number. Its important to anticipate what could go wrong in your code. Here for a connection to another database it can be:
Here is a way to test what goes wrong with the user used by the database link: |
| Define custom exception, raise it and see where it comes from To illustrate this, here is a function that has 3 different "wrong" behaviors
Feel free to adapt it to your standards: Giving on a regular database: Remember that exception are here to handle rare cases. I saw applications who raised an exception at every access, just to ask for user password, saying "not connected"... so much computation waste. |
| Handling connexion error exceptions Each standard Oracle error is associated with an error number. Its important to anticipate what could go wrong in your code. Here for a connection to another database it can be:
Here is a way to test what goes wrong with the user used by the database link: |
| Define custom exception, raise it and see where it comes from To illustrate this, here is a function that has 3 different "wrong" behaviors
Feel free to adapt it to your standards: Giving on a regular database: Remember that exception are here to handle rare cases. I saw applications who raised an exception at every access, just to ask for user password, saying "not connected"... so much computation waste. |
| Handling connexion error exceptions Each standard Oracle error is associated with an error number. Its important to anticipate what could go wrong in your code. Here for a connection to another database it can be:
Here is a way to test what goes wrong with the user used by the database link: |
| Define custom exception, raise it and see where it comes from To illustrate this, here is a function that has 3 different "wrong" behaviors
Feel free to adapt it to your standards: Giving on a regular database: Remember that exception are here to handle rare cases. I saw applications who raised an exception at every access, just to ask for user password, saying "not connected"... so much computation waste. |
| Handling connexion error exceptions Each standard Oracle error is associated with an error number. Its important to anticipate what could go wrong in your code. Here for a connection to another database it can be:
Here is a way to test what goes wrong with the user used by the database link: |
Read Article
https://develop.horje.com/learn/1434/reference