blob: cdecb52531618102cdbfca07865f62ed23413d42 [file] [log] [blame]
csharptest0f3540e2011-08-05 20:40:14 -05001using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace Google.ProtocolBuffers.Serialization
6{
7 /// <summary>
8 /// The exception raised when a recursion limit is reached while parsing input.
9 /// </summary>
10#if !SILVERLIGHT2
11 [Serializable]
12#endif
13 public sealed class RecursionLimitExceededException : FormatException
14 {
15 const string message = "Possible malicious message had too many levels of nesting.";
16
17 internal RecursionLimitExceededException() : base(message)
18 {
19 }
20
21#if !SILVERLIGHT2
22 private RecursionLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
23 : base(info, context)
24 {
25 }
26#endif
27 }
28}