RecursionDepthOverflowException.cs 588 B

123456789101112131415161718192021
  1. using System;
  2. namespace Jint.Runtime
  3. {
  4. using Jint.Runtime.CallStack;
  5. public class RecursionDepthOverflowException : Exception
  6. {
  7. public string CallChain { get; private set; }
  8. public string CallExpressionReference { get; private set; }
  9. public RecursionDepthOverflowException(JintCallStack currentStack, string currentExpressionReference)
  10. : base("The recursion is forbidden by script host.")
  11. {
  12. CallExpressionReference = currentExpressionReference;
  13. CallChain = currentStack.ToString();
  14. }
  15. }
  16. }