csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame^] | 1 | using System;
|
| 2 | using System.Collections.Generic;
|
| 3 | using System.Text;
|
| 4 |
|
| 5 | namespace 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 | }
|