• Home
  • Raw
  • Download

Lines Matching refs:ParseError

96 class ParseError(Error):  class
392 raise ParseError('Failed to load JSON: duplicate key {0}.'.format(name))
431 raise ParseError('Failed to load JSON: {0}.'.format(str(e)))
506 raise ParseError('Message type {0} does not have extensions'.format(
522 raise ParseError(
528 raise ParseError('Message type "{0}" should not have multiple '
536 raise ParseError('Message type "{0}" should not have multiple '
558 raise ParseError('repeated field {0} must be in [] which is '
567 raise ParseError('null is not allowed to be used as an element'
574 raise ParseError('null is not allowed to be used as an element'
590 except ParseError as e:
592 raise ParseError('Failed to parse {0} field: {1}.'.format(name, e))
594 raise ParseError(str(e))
596 raise ParseError('Failed to parse {0} field: {1}.'.format(name, e))
598 raise ParseError('Failed to parse {0} field: {1}.'.format(name, e))
607 raise ParseError('@type is missing when parsing any message.')
632 raise ParseError(e)
649 raise ParseError('Value {0} has unexpected type {1}.'.format(
655 raise ParseError(
664 raise ParseError(
690 raise ParseError(
738 raise ParseError('Unpaired surrogate')
748 raise ParseError('Invalid enum value {0} for enum type {1}.'.format(
754 raise ParseError('Invalid enum value {0} for enum type {1}.'.format(
772 raise ParseError('Couldn\'t parse integer: {0}.'.format(value))
775 raise ParseError('Couldn\'t parse integer: "{0}".'.format(value))
778 raise ParseError('Bool value {0} is not acceptable for '
788 raise ParseError('Couldn\'t parse NaN, use quoted "NaN" instead.')
791 raise ParseError('Couldn\'t parse Infinity or value too large, '
794 raise ParseError('Couldn\'t parse -Infinity or value too small, '
799 raise ParseError('Float value too large')
802 raise ParseError('Float value too small')
804 raise ParseError('Couldn\'t parse float "nan", use "NaN" instead.')
817 raise ParseError('Couldn\'t parse float: {0}.'.format(value))
839 raise ParseError('Expected "true" or "false", not {0}.'.format(value))
842 raise ParseError('Expected true or false without quotes.')