diff options
author | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:33:29 +0100 |
---|---|---|
committer | unknown <Jon@.(none)> | 2008-08-14 20:33:29 +0100 |
commit | 1dd0a61d09cb5274be83d61ca6eea69622097d3d (patch) | |
tree | aa8b79354c6a1d57db980df9d27ed778230c3687 /csharp/ProtocolBuffers/InvalidProtocolBufferException.cs | |
parent | b802a94f452ad7123ba44ca8174eecef92383451 (diff) | |
download | protobuf-1dd0a61d09cb5274be83d61ca6eea69622097d3d.tar.gz protobuf-1dd0a61d09cb5274be83d61ca6eea69622097d3d.tar.bz2 protobuf-1dd0a61d09cb5274be83d61ca6eea69622097d3d.zip |
More tests for CodedInputStream, and some more WireFormat
committer: Jon Skeet <skeet@pobox.com>
Diffstat (limited to 'csharp/ProtocolBuffers/InvalidProtocolBufferException.cs')
-rw-r--r-- | csharp/ProtocolBuffers/InvalidProtocolBufferException.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/csharp/ProtocolBuffers/InvalidProtocolBufferException.cs b/csharp/ProtocolBuffers/InvalidProtocolBufferException.cs index bf898722..db16ca8f 100644 --- a/csharp/ProtocolBuffers/InvalidProtocolBufferException.cs +++ b/csharp/ProtocolBuffers/InvalidProtocolBufferException.cs @@ -14,7 +14,8 @@ namespace Google.ProtocolBuffers { : base(message) { } - internal static InvalidProtocolBufferException TruncatedMessage() { + /// TODO(jonskeet): Make this internal again and use InternalVisibleTo? + public 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 " + @@ -22,13 +23,14 @@ namespace Google.ProtocolBuffers { "misreported its own length."); } + /// TODO(jonskeet): Make this internal again and use InternalVisibleTo? internal static InvalidProtocolBufferException NegativeSize() { return new InvalidProtocolBufferException( "CodedInputStream encountered an embedded string or message " + "which claimed to have negative size."); } - internal static InvalidProtocolBufferException MalformedVarint() { + public static InvalidProtocolBufferException MalformedVarint() { return new InvalidProtocolBufferException( "CodedInputStream encountered a malformed varint."); } |