RecursionLimitExceeded.cs 536 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Google.ProtocolBuffers.Serialization
  5. {
  6. /// <summary>
  7. /// The exception raised when a recursion limit is reached while parsing input.
  8. /// </summary>
  9. public sealed class RecursionLimitExceededException : FormatException
  10. {
  11. const string message = "Possible malicious message had too many levels of nesting.";
  12. internal RecursionLimitExceededException() : base(message)
  13. {
  14. }
  15. }
  16. }