Lines Matching defs:Error
96 # to the client. This would be specified by the url that triggers the error.
161 class Error(Exception):
162 """Error class for this module."""
165 class ProtobufDataTypeFieldNotUnique(Error):
169 class DataTypeIdNotRecognized(Error):
173 class MigrationDoneError(Error):
184 class StoreBirthdayError(Error):
188 class TransientError(Error):
189 """The client would be sent a transient error."""
192 class SyncInducedError(Error):
193 """The client would be sent an error."""
196 class InducedErrorFrequencyNotDefined(Error):
197 """The error frequency defined is not handled."""
200 class ClientNotConnectedError(Error):
372 """Raises an error if any the provided versions are out of date.
580 self.induced_error = sync_pb2.ClientToServerResponse.Error()
942 if the entry was not committed due to an error.
1076 Clients will see the MIGRATION_DONE error for these datatypes until they
1196 def SetInducedError(self, error, error_frequency,
1198 self.induced_error = error
1400 # Always means return the given error for all requests.
1404 # return an error. Don't switch the order of failures. There are
1429 except DataTypeIdNotRecognized, error:
1442 error = sync_pb2.ClientToServerResponse.Error()
1444 error_type = urlparse.parse_qs(query)['error']
1446 error.error_type = int(error_type[0])
1447 error.action = int(action[0])
1449 error.url = (urlparse.parse_qs(query)['url'])[0]
1451 error.url = ''
1453 error.error_description =(
1456 error.error_description = ''
1461 self.account.SetInducedError(error, error_frequency, self.sync_count)
1462 response = ('Error = %d, action = %d, url = %s, description = %s' %
1463 (error.error_type, error.action,
1464 error.url,
1465 error.error_description))
1466 except error:
1478 '<html><title>Birthday error</title><H1>Birthday error</H1></html>')
1484 '<html><title>Transient error</title><H1>Transient error</H1></html>')
1588 except MigrationDoneError, error:
1590 print 'MIGRATION_DONE: <%s>' % (ShortDatatypeListSummary(error.datatypes))
1595 SyncTypeToProtocolDataTypeId(x) for x in error.datatypes]
1597 except StoreBirthdayError, error:
1604 except TransientError, error:
1611 except SyncInducedError, error:
1615 error = self.account.GetInducedError()
1616 response.error.error_type = error.error_type
1617 response.error.url = error.url
1618 response.error.error_description = error.error_description
1619 response.error.action = error.action
1627 Commit attempts stop after the first error, returning a CONFLICT result