Home
last modified time | relevance | path

Searched refs:ParseError (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Djson_format.py85 class ParseError(Error): class
289 raise ParseError('Failed to load JSON: duplicate key {0}.'.format(name))
330 raise ParseError('Failed to load JSON: {0}.'.format(str(e)))
383 raise ParseError(
387 raise ParseError('Message type "{0}" should not have multiple '
395 raise ParseError('Message type "{0}" should not have multiple '
412 raise ParseError('repeated field {0} must be in [] which is '
421 raise ParseError('null is not allowed to be used as an element'
428 raise ParseError('null is not allowed to be used as an element'
437 except ParseError as e:
[all …]
Dtext_format.py77 class ParseError(Error): class
87 super(ParseError, self).__init__(message)
89 super(ParseError, self).__init__()
732 raise ParseError('Descriptor pool required to parse expanded Any field')
736 raise ParseError('Type %s not found in descriptor pool' %
921 raise ParseError('Invalid field value: ' + tokenizer.token)
1019 raise self.ParseError('Expected "%s".' % token)
1024 raise self.ParseError('Expected comment.')
1032 except ParseError:
1046 raise self.ParseError('Expected identifier.')
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dtext_format_test.py373 self.assertRaises(text_format.ParseError, text_format.Parse, text, message)
378 six.assertRaisesRegex(self, text_format.ParseError, (
385 six.assertRaisesRegex(self, text_format.ParseError, (
392 six.assertRaisesRegex(self, text_format.ParseError,
399 six.assertRaisesRegex(self, text_format.ParseError,
407 six.assertRaisesRegex(self, text_format.ParseError,
458 with self.assertRaisesRegexp(text_format.ParseError,
712 six.assertRaisesRegex(self, text_format.ParseError, (
720 text_format.ParseError,
802 text_format.ParseError,
[all …]
Djson_format_test.py104 json_format.ParseError,
604 json_format.ParseError,
673 self.assertRaises(json_format.ParseError,
712 json_format.ParseError,
717 json_format.ParseError,
723 json_format.ParseError,
730 json_format.ParseError,
738 json_format.ParseError,
744 well_known_types.ParseError,
749 well_known_types.ParseError,
[all …]
Dwell_known_types.py62 class ParseError(Error): class
143 raise ParseError(
158 raise ParseError(
168 raise ParseError('Failed to parse timestamp: invalid trailing'
174 raise ParseError(
284 raise ParseError(
298 raise ParseError(
Dwell_known_types_test.py276 well_known_types.ParseError,
281 well_known_types.ParseError,
299 well_known_types.ParseError,
303 well_known_types.ParseError,
/frameworks/base/media/mca/
Dstructgen.py98 class ParseError: class
235 raise ParseError(lineno, "Unknown field type '%s'!" % typestr)
238 raise ParseError(lineno, "Unknown command: '%s'!" % cmd)
244 raise ParseError(lineno, "Required field '@name' missing!")
246 raise ParseError(lineno, "Required field '@package' missing!")
248 raise ParseError(lineno, "Required field '@libname' missing!")
257 raise ParseError(lineno, "Not enough arguments specifed for command '%s'! Expected %d, " \
260 raise ParseError(lineno, "Too many arguments specifed for command '%s'! Expected %d, " \
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Conformance/
DProgram.cs102 return new ConformanceResponse { ParseError = e.Message }; in PerformRequest()
106 return new ConformanceResponse { ParseError = e.Message }; in PerformRequest()
DConformance.cs457 case ResultOneofCase.ParseError: in ConformanceResponse()
458 ParseError = other.ParseError; in ConformanceResponse()
494 public string ParseError { property in Conformance.ConformanceResponse
495 get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
498 resultCase_ = ResultOneofCase.ParseError;
583 ParseError = 1, enumerator
615 if (ParseError != other.ParseError) return false; in Equals()
628 if (resultCase_ == ResultOneofCase.ParseError) hash ^= ParseError.GetHashCode(); in GetHashCode()
645 if (resultCase_ == ResultOneofCase.ParseError) { in WriteTo()
647 output.WriteString(ParseError); in WriteTo()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/lib/google/
Dprotobuf.rb39 class ParseError < Error; end class
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/
Dconformance_python.py70 except json_format.ParseError as e: