Home
last modified time | relevance | path

Searched refs:InvalidProtocolBufferException (Results 1 – 25 of 51) sorted by relevance

123

/external/protobuf/csharp/src/Google.Protobuf/
DInvalidProtocolBufferException.cs42 public sealed class InvalidProtocolBufferException : IOException class
44 internal InvalidProtocolBufferException(string message) in InvalidProtocolBufferException() method in Google.Protobuf.InvalidProtocolBufferException
49 internal InvalidProtocolBufferException(string message, Exception innerException) in InvalidProtocolBufferException() method in Google.Protobuf.InvalidProtocolBufferException
54 internal static InvalidProtocolBufferException MoreDataAvailable() in MoreDataAvailable()
56 return new InvalidProtocolBufferException( in MoreDataAvailable()
60 internal static InvalidProtocolBufferException TruncatedMessage() in TruncatedMessage()
62 return new InvalidProtocolBufferException( in TruncatedMessage()
69 internal static InvalidProtocolBufferException NegativeSize() in NegativeSize()
71 return new InvalidProtocolBufferException( in NegativeSize()
76 internal static InvalidProtocolBufferException MalformedVarint() in MalformedVarint()
[all …]
DJsonParser.cs137 throw new InvalidProtocolBufferException("Expected end of JSON after object"); in Merge()
152 throw InvalidProtocolBufferException.JsonRecursionLimitExceeded(); in Merge()
167 throw new InvalidProtocolBufferException("Expected an object"); in Merge()
198 …throw new InvalidProtocolBufferException($"Multiple values specified for oneof {field.ContainingOn… in Merge()
208 throw new InvalidProtocolBufferException("Unknown field: " + name); in Merge()
250 …throw new InvalidProtocolBufferException("Repeated field value was not an array. Token type: " + t… in MergeRepeatedField()
264 … throw new InvalidProtocolBufferException("Repeated field elements cannot be null"); in MergeRepeatedField()
276 throw new InvalidProtocolBufferException("Expected an object to populate a map"); in MergeMapField()
284 throw new InvalidProtocolBufferException("Invalid map field: " + field.FullName); in MergeMapField()
299 throw new InvalidProtocolBufferException("Map values must not be null"); in MergeMapField()
[all …]
DCodedInputStream.cs296 throw InvalidProtocolBufferException.MoreDataAvailable(); in CheckReadEndOfStreamTag()
378 throw InvalidProtocolBufferException.InvalidTag(); in ReadTag()
408 throw new InvalidProtocolBufferException( in SkipLastField()
433 throw InvalidProtocolBufferException.RecursionLimitExceeded(); in SkipGroup()
441 throw InvalidProtocolBufferException.TruncatedMessage(); in SkipGroup()
455 throw new InvalidProtocolBufferException( in SkipGroup()
570 throw InvalidProtocolBufferException.RecursionLimitExceeded(); in ReadMessage()
579 throw InvalidProtocolBufferException.TruncatedMessage(); in ReadMessage()
732 throw InvalidProtocolBufferException.MalformedVarint(); in SlowReadRawVarint32()
794 throw InvalidProtocolBufferException.MalformedVarint(); in ReadRawVarint32()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DInvalidProtocolBufferException.java41 public class InvalidProtocolBufferException extends IOException { class
45 public InvalidProtocolBufferException(final String description) { in InvalidProtocolBufferException() method in InvalidProtocolBufferException
49 public InvalidProtocolBufferException(IOException e) { in InvalidProtocolBufferException() method in InvalidProtocolBufferException
59 public InvalidProtocolBufferException setUnfinishedMessage( in setUnfinishedMessage()
81 static InvalidProtocolBufferException truncatedMessage() { in truncatedMessage()
82 return new InvalidProtocolBufferException( in truncatedMessage()
89 static InvalidProtocolBufferException negativeSize() { in negativeSize()
90 return new InvalidProtocolBufferException( in negativeSize()
95 static InvalidProtocolBufferException malformedVarint() { in malformedVarint()
96 return new InvalidProtocolBufferException( in malformedVarint()
[all …]
DParser.java63 throws InvalidProtocolBufferException; in parseFrom()
73 throws InvalidProtocolBufferException; in parseFrom()
81 throws InvalidProtocolBufferException; in parsePartialFrom()
90 throws InvalidProtocolBufferException; in parsePartialFrom()
100 throws InvalidProtocolBufferException; in parseFrom()
109 throws InvalidProtocolBufferException; in parseFrom()
117 throws InvalidProtocolBufferException; in parsePartialFrom()
126 throws InvalidProtocolBufferException; in parsePartialFrom()
133 throws InvalidProtocolBufferException; in parseFrom()
142 throws InvalidProtocolBufferException; in parseFrom()
[all …]
DAbstractParser.java69 throws InvalidProtocolBufferException { in checkMessageInitialized()
83 throws InvalidProtocolBufferException { in parsePartialFrom()
89 throws InvalidProtocolBufferException { in parseFrom()
95 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException { in parseFrom()
101 throws InvalidProtocolBufferException { in parsePartialFrom()
108 } catch (InvalidProtocolBufferException e) { in parsePartialFrom()
112 } catch (InvalidProtocolBufferException e) { in parsePartialFrom()
118 public MessageType parsePartialFrom(ByteString data) throws InvalidProtocolBufferException { in parsePartialFrom()
124 throws InvalidProtocolBufferException { in parseFrom()
129 public MessageType parseFrom(ByteString data) throws InvalidProtocolBufferException { in parseFrom()
[all …]
DCodedInputStream.java96 } catch (InvalidProtocolBufferException ex) { in newInstance()
148 throw InvalidProtocolBufferException.invalidTag(); in readTag()
162 throws InvalidProtocolBufferException { in checkLastTagWas()
164 throw InvalidProtocolBufferException.invalidEndTag(); in checkLastTagWas()
201 throw InvalidProtocolBufferException.invalidWireType(); in skipField()
252 throw InvalidProtocolBufferException.invalidWireType(); in skipField()
412 throw InvalidProtocolBufferException.invalidUtf8(); in readStringRequireUtf8()
423 throw InvalidProtocolBufferException.recursionLimitExceeded(); in readGroup()
440 throw InvalidProtocolBufferException.recursionLimitExceeded(); in readGroup()
475 throw InvalidProtocolBufferException.recursionLimitExceeded(); in readMessage()
[all …]
DMessageLite.java218 Builder mergeFrom(ByteString data) throws InvalidProtocolBufferException; in mergeFrom()
229 throws InvalidProtocolBufferException; in mergeFrom()
238 Builder mergeFrom(byte[] data) throws InvalidProtocolBufferException; in mergeFrom()
248 throws InvalidProtocolBufferException; in mergeFrom()
259 throws InvalidProtocolBufferException; in mergeFrom()
270 throws InvalidProtocolBufferException; in mergeFrom()
DMessage.java258 Builder mergeFrom(ByteString data) throws InvalidProtocolBufferException; in mergeFrom()
262 throws InvalidProtocolBufferException; in mergeFrom()
265 Builder mergeFrom(byte[] data) throws InvalidProtocolBufferException; in mergeFrom()
268 Builder mergeFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException; in mergeFrom()
272 throws InvalidProtocolBufferException; in mergeFrom()
276 throws InvalidProtocolBufferException; in mergeFrom()
DAbstractMessageLite.java150 public BuilderType mergeFrom(final ByteString data) throws InvalidProtocolBufferException { in mergeFrom()
156 } catch (InvalidProtocolBufferException e) { in mergeFrom()
168 throws InvalidProtocolBufferException { in mergeFrom()
174 } catch (InvalidProtocolBufferException e) { in mergeFrom()
184 public BuilderType mergeFrom(final byte[] data) throws InvalidProtocolBufferException { in mergeFrom()
190 throws InvalidProtocolBufferException { in mergeFrom()
197 } catch (InvalidProtocolBufferException e) { in mergeFrom()
208 throws InvalidProtocolBufferException { in mergeFrom()
218 throws InvalidProtocolBufferException { in mergeFrom()
225 } catch (InvalidProtocolBufferException e) { in mergeFrom()
DUnknownFieldSet.java253 throws InvalidProtocolBufferException { in parseFrom()
259 throws InvalidProtocolBufferException { in parseFrom()
545 throw InvalidProtocolBufferException.invalidWireType(); in mergeFieldFrom()
555 public Builder mergeFrom(final ByteString data) throws InvalidProtocolBufferException { in mergeFrom()
561 } catch (final InvalidProtocolBufferException e) { in mergeFrom()
576 public Builder mergeFrom(final byte[] data) throws InvalidProtocolBufferException { in mergeFrom()
582 } catch (final InvalidProtocolBufferException e) { in mergeFrom()
632 throws InvalidProtocolBufferException { in mergeFrom()
638 public Builder mergeFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException { in mergeFrom()
645 } catch (InvalidProtocolBufferException e) { in mergeFrom()
[all …]
DGeneratedMessageLite.java1199 } catch (InvalidProtocolBufferException e) { in readResolve()
1312 throws InvalidProtocolBufferException { in parsePartialFrom()
1324 throws InvalidProtocolBufferException { in parsePartialFrom()
1331 if (e.getCause() instanceof InvalidProtocolBufferException) { in parsePartialFrom()
1332 throw (InvalidProtocolBufferException) e.getCause(); in parsePartialFrom()
1342 throws InvalidProtocolBufferException { in parsePartialFrom()
1353 throws InvalidProtocolBufferException { in checkMessageInitialized()
1365 throws InvalidProtocolBufferException { in parseFrom()
1373 throws InvalidProtocolBufferException { in parseFrom()
1381 throws InvalidProtocolBufferException { in parsePartialFrom()
[all …]
DDynamicMessage.java106 throws InvalidProtocolBufferException { in parseFrom()
113 throws InvalidProtocolBufferException { in parseFrom()
119 throws InvalidProtocolBufferException { in parseFrom()
126 throws InvalidProtocolBufferException { in parseFrom()
293 throws InvalidProtocolBufferException { in getParserForType()
297 } catch (InvalidProtocolBufferException e) { in getParserForType()
300 throw new InvalidProtocolBufferException(e.getMessage()) in getParserForType()
401 private DynamicMessage buildParsed() throws InvalidProtocolBufferException {
DUninitializedMessageException.java80 public InvalidProtocolBufferException asInvalidProtocolBufferException() { in asInvalidProtocolBufferException()
81 return new InvalidProtocolBufferException(getMessage()); in asInvalidProtocolBufferException()
DAbstractMessage.java484 throws InvalidProtocolBufferException { in mergeFrom()
492 throws InvalidProtocolBufferException { in mergeFrom()
498 throws InvalidProtocolBufferException { in mergeFrom()
505 throws InvalidProtocolBufferException { in mergeFrom()
513 throws InvalidProtocolBufferException { in mergeFrom()
521 throws InvalidProtocolBufferException { in mergeFrom()
DMapEntryLite.java63 throws InvalidProtocolBufferException { in Metadata()
153 throws InvalidProtocolBufferException { in MapEntryLite()
179 } catch (InvalidProtocolBufferException e) { in MapEntryLite()
182 throw new InvalidProtocolBufferException(e.getMessage()) in MapEntryLite()
DLazyFieldLite.java346 } catch (InvalidProtocolBufferException e) { in mergeFrom()
356 } catch (InvalidProtocolBufferException e) { in mergeValueAndBytes()
440 } catch (InvalidProtocolBufferException e) { in ensureInitialized()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java59 import com.google.protobuf.InvalidProtocolBufferException;
177 throws InvalidProtocolBufferException { in print()
182 } catch (InvalidProtocolBufferException e) { in print()
228 throws InvalidProtocolBufferException { in merge()
568 throw new InvalidProtocolBufferException("Invalid Any type."); in printAny()
574 throw new InvalidProtocolBufferException( in printAny()
603 throw new InvalidProtocolBufferException("Invalid Wrapper type."); in printWrapper()
642 throw new InvalidProtocolBufferException("Invalid Struct type."); in printStruct()
660 throw new InvalidProtocolBufferException("Invalid Value type."); in printValue()
672 throw new InvalidProtocolBufferException("Invalid ListValue type."); in printListValue()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
195 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
211 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
267 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
288 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
311 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
332 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
385 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
415 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
442 [TestCase("1.5", typeof(InvalidProtocolBufferException))]
[all …]
DCodedInputStreamTest.cs96 … private static void AssertReadVarintFailure(InvalidProtocolBufferException expected, byte[] data) in AssertReadVarintFailure()
99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
141 InvalidProtocolBufferException.MalformedVarint(), in ReadVarint()
145 InvalidProtocolBufferException.TruncatedMessage(), in ReadVarint()
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65)); in MaliciousRecursion()
324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java161 InvalidProtocolBufferException expected, byte[] data) in assertReadVarintFailure()
167 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure()
175 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure()
183 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure()
191 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure()
227 InvalidProtocolBufferException.malformedVarint(), in testReadVarint()
231 InvalidProtocolBufferException.truncatedMessage(), in testReadVarint()
435 } catch (InvalidProtocolBufferException e) { in testReadMaliciouslyLargeBlob()
468 } catch (InvalidProtocolBufferException e) { in testMaliciousRecursion()
477 } catch (InvalidProtocolBufferException e) { in testMaliciousRecursion()
[all …]
DUnknownFieldSetLiteTest.java155 public void testRoundTrips() throws InvalidProtocolBufferException { in testRoundTrips()
188 } catch (InvalidProtocolBufferException e) { in testMalformedBytes()
203 } catch (InvalidProtocolBufferException e) { in testMissingStartGroupTag()
218 } catch (InvalidProtocolBufferException e) { in testMissingEndGroupTag()
234 } catch (InvalidProtocolBufferException e) { in testMismatchingGroupTags()
254 } catch (InvalidProtocolBufferException e) { in testTruncatedInput()
/external/protobuf/conformance/
DConformanceJava.java5 import com.google.protobuf.InvalidProtocolBufferException;
57 } catch (InvalidProtocolBufferException e) { in doTest()
68 } catch (InvalidProtocolBufferException e) { in doTest()
93 } catch (InvalidProtocolBufferException | IllegalArgumentException e) { in doTest()
DConformanceJavaLite.java3 import com.google.protobuf.InvalidProtocolBufferException;
54 } catch (InvalidProtocolBufferException e) { in doTest()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java142 throws com.google.protobuf.InvalidProtocolBufferException {
146 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
149 throw new com.google.protobuf.InvalidProtocolBufferException(
271 throws com.google.protobuf.InvalidProtocolBufferException { in parseFrom()
277 throws com.google.protobuf.InvalidProtocolBufferException { in parseFrom()
281 throws com.google.protobuf.InvalidProtocolBufferException { in parseFrom()
287 throws com.google.protobuf.InvalidProtocolBufferException { in parseFrom()

123