How we can generate custom error messages so that the user can understand what is the error.
If we are running the application and the application is not connected to the data source it gives SQL Error which is very long.
What i am trying to do is if the application fails to connect to data source can we show an error message which says
"Data base not Connected or Server not Connected please check connections"
or any custom message for that purpose.