1

I am looking for the Java equivalent of the following C# code. Please help.

C#

if (new StackTrace(false).FrameCount > 2000)
{
    throw new Exception("Stop the formula calculation because risk of StackOverflowException");
}
shakeel
  • 1,717
  • 10
  • 14

0 Answers0