✅ Throw error without showing the call stack
Hey, so I'm working on a toy compiler and I want to throw errors when compiler detects some issues
thats how it currently looks: (look at the screenshot)
And thats the code:
What I want to do is only print the message and stop the program. I don't want to print
Unhlandled exception
or this call stack:
1 Reply
How can this be achieved?
okay, I just remembered that
Environment.Exit
exists...