Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- try
- {
- Recurse();
- Console.WriteLine("No exception thrown.");
- }
- catch (OutOfMemoryException e)
- {
- Console.WriteLine("Out of memory exception thrown.");
- }
- catch (StackOverflowException e)
- {
- Console.WriteLine("Stack overflow exception thrown.");
- }
- catch (InsufficientExecutionStackException e)
- {
- Console.Write("Insufficient execution stack exception thrown.");
- }
- catch (Exception e)
- {
- Console.WriteLine("Some kind of exception thrown.");
- }
- }
- private static void Recurse()
- {
- Recurse();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement