try { while (Me.Coding.GetCondition() != Emotions.Frustrated) { } } catch (StackOverflowException ex) { Console.WriteLine("Thus is life..."); }