|
@@ -30,6 +30,7 @@
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
+using System;
|
|
using System.IO;
|
|
using System.IO;
|
|
|
|
|
|
namespace Google.Protobuf
|
|
namespace Google.Protobuf
|
|
@@ -45,6 +46,11 @@ namespace Google.Protobuf
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal InvalidProtocolBufferException(string message, Exception innerException)
|
|
|
|
+ : base(message, innerException)
|
|
|
|
+ {
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static InvalidProtocolBufferException MoreDataAvailable()
|
|
internal static InvalidProtocolBufferException MoreDataAvailable()
|
|
{
|
|
{
|
|
return new InvalidProtocolBufferException(
|
|
return new InvalidProtocolBufferException(
|
|
@@ -82,6 +88,11 @@ namespace Google.Protobuf
|
|
"Protocol message contained an invalid tag (zero).");
|
|
"Protocol message contained an invalid tag (zero).");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static InvalidProtocolBufferException InvalidBase64(Exception innerException)
|
|
|
|
+ {
|
|
|
|
+ return new InvalidProtocolBufferException("Invalid base64 data", innerException);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static InvalidProtocolBufferException InvalidEndTag()
|
|
internal static InvalidProtocolBufferException InvalidEndTag()
|
|
{
|
|
{
|
|
return new InvalidProtocolBufferException(
|
|
return new InvalidProtocolBufferException(
|