I am wondering can try..catch force execution to go into the catch and run code in there?
try..catch
catch
here example code:
try { if (
public class CustomException: Exception { public CustomException(string message) : base(message) { } }
//
if(something == anything) { throw new CustomException(" custom text message"); }
you can try this