I am trying to learn how to throw exceptions.
Currently when I do the following
try
{
throw new InvalidOperationException("TEST");
}
catch
{
throw;
}
When I look into AI the exception comes like this:#
InvalidOperationException
with a message "Test"
How do I get it to throw something like the below?
System.InvalidOperationException: TEST at test.Program.Main