I want to throw an exception in asp.net VB web application using framework 2.0 my issue is I only want to show the error message , but using below code i also see line number, file and other error messages.
Throw New ApplicationException("My error message ")
i have tried the below code
Throw New ApplicationException("Insert Member Method Not Supported")
Throw New ApplicationException("Insert Member Method Not Supported")
I want to show My error message without line numbers or file name that it is in etc using Throw New ApplicationException() or an alternative that halt's further operation and displays a error message