aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2015-08-05 07:09:17 +0100
committerJon Skeet <skeet@pobox.com>2015-08-05 07:09:17 +0100
commitd77d70d227b648ac8c36183ac9d85cf39f782978 (patch)
tree7763ffd6be6c84baa68431035b1e87fbc4c1d986 /csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs
parent95910f1c7dfa95b329c0b25a1b9beedbdc133800 (diff)
parent30e8157550e02625bb4a4fa93153442d6e454709 (diff)
downloadprotobuf-d77d70d227b648ac8c36183ac9d85cf39f782978.tar.gz
protobuf-d77d70d227b648ac8c36183ac9d85cf39f782978.tar.bz2
protobuf-d77d70d227b648ac8c36183ac9d85cf39f782978.zip
Merge pull request #691 from jskeet/xml-documentation
Document everything, and turn on errors if we fail to document anything in the future
Diffstat (limited to 'csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs')
-rw-r--r--csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs b/csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs
index 4f89347d..bbba9b3b 100644
--- a/csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs
+++ b/csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs
@@ -45,7 +45,7 @@ namespace Google.Protobuf
{
}
- public static InvalidProtocolBufferException TruncatedMessage()
+ internal static InvalidProtocolBufferException TruncatedMessage()
{
return new InvalidProtocolBufferException(
"While parsing a protocol message, the input ended unexpectedly " +
@@ -61,12 +61,15 @@ namespace Google.Protobuf
"which claimed to have negative size.");
}
- public static InvalidProtocolBufferException MalformedVarint()
+ internal static InvalidProtocolBufferException MalformedVarint()
{
return new InvalidProtocolBufferException(
"CodedInputStream encountered a malformed varint.");
}
+ /// <summary>
+ /// Creates an exception for an error condition of an invalid tag being encountered.
+ /// </summary>
public static InvalidProtocolBufferException InvalidTag()
{
return new InvalidProtocolBufferException(