How to send a throw exception message to variable or send a mail the message

im using several throw exception with messages within i want to send a mail telling what is the error which inside the throw exception how can i do that to send it as mail

The sequence calling “checkThefiles” should have a try catch like below
Then in your catch statement, assign exception.Message to a string variable, this variable will be equal to whatever message youve thrown e.g. “type is not selected”

thanks buddy

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.