88 lines
3.7 KiB
C#
88 lines
3.7 KiB
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace Google.Protobuf
|
|
{
|
|
// Token: 0x0200000E RID: 14
|
|
public sealed class InvalidProtocolBufferException : IOException
|
|
{
|
|
// Token: 0x060000C7 RID: 199 RVA: 0x000044CC File Offset: 0x000026CC
|
|
internal InvalidProtocolBufferException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060000C8 RID: 200 RVA: 0x000044D5 File Offset: 0x000026D5
|
|
internal InvalidProtocolBufferException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060000C9 RID: 201 RVA: 0x000044DF File Offset: 0x000026DF
|
|
internal static InvalidProtocolBufferException MoreDataAvailable()
|
|
{
|
|
return new InvalidProtocolBufferException("Completed reading a message while more data was available in the stream.");
|
|
}
|
|
|
|
// Token: 0x060000CA RID: 202 RVA: 0x000044EB File Offset: 0x000026EB
|
|
internal static InvalidProtocolBufferException TruncatedMessage()
|
|
{
|
|
return new InvalidProtocolBufferException("While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length.");
|
|
}
|
|
|
|
// Token: 0x060000CB RID: 203 RVA: 0x000044F7 File Offset: 0x000026F7
|
|
internal static InvalidProtocolBufferException NegativeSize()
|
|
{
|
|
return new InvalidProtocolBufferException("CodedInputStream encountered an embedded string or message which claimed to have negative size.");
|
|
}
|
|
|
|
// Token: 0x060000CC RID: 204 RVA: 0x00004503 File Offset: 0x00002703
|
|
internal static InvalidProtocolBufferException MalformedVarint()
|
|
{
|
|
return new InvalidProtocolBufferException("CodedInputStream encountered a malformed varint.");
|
|
}
|
|
|
|
// Token: 0x060000CD RID: 205 RVA: 0x0000450F File Offset: 0x0000270F
|
|
internal static InvalidProtocolBufferException InvalidTag()
|
|
{
|
|
return new InvalidProtocolBufferException("Protocol message contained an invalid tag (zero).");
|
|
}
|
|
|
|
// Token: 0x060000CE RID: 206 RVA: 0x0000451B File Offset: 0x0000271B
|
|
internal static InvalidProtocolBufferException InvalidBase64(Exception innerException)
|
|
{
|
|
return new InvalidProtocolBufferException("Invalid base64 data", innerException);
|
|
}
|
|
|
|
// Token: 0x060000CF RID: 207 RVA: 0x00004528 File Offset: 0x00002728
|
|
internal static InvalidProtocolBufferException InvalidEndTag()
|
|
{
|
|
return new InvalidProtocolBufferException("Protocol message end-group tag did not match expected tag.");
|
|
}
|
|
|
|
// Token: 0x060000D0 RID: 208 RVA: 0x00004534 File Offset: 0x00002734
|
|
internal static InvalidProtocolBufferException RecursionLimitExceeded()
|
|
{
|
|
return new InvalidProtocolBufferException("Protocol message had too many levels of nesting. May be malicious. Use CodedInputStream.SetRecursionLimit() to increase the depth limit.");
|
|
}
|
|
|
|
// Token: 0x060000D1 RID: 209 RVA: 0x00004540 File Offset: 0x00002740
|
|
internal static InvalidProtocolBufferException JsonRecursionLimitExceeded()
|
|
{
|
|
return new InvalidProtocolBufferException("Protocol message had too many levels of nesting. May be malicious. Use JsonParser.Settings to increase the depth limit.");
|
|
}
|
|
|
|
// Token: 0x060000D2 RID: 210 RVA: 0x0000454C File Offset: 0x0000274C
|
|
internal static InvalidProtocolBufferException SizeLimitExceeded()
|
|
{
|
|
return new InvalidProtocolBufferException("Protocol message was too large. May be malicious. Use CodedInputStream.SetSizeLimit() to increase the size limit.");
|
|
}
|
|
|
|
// Token: 0x060000D3 RID: 211 RVA: 0x00004558 File Offset: 0x00002758
|
|
internal static InvalidProtocolBufferException InvalidMessageStreamTag()
|
|
{
|
|
return new InvalidProtocolBufferException("Stream of protocol messages had invalid tag. Expected tag is length-delimited field 1.");
|
|
}
|
|
}
|
|
}
|