Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(40)  |  Call(20)  |  Derive(0)  |  Import(20)
Raised when the backend is down or fails

src/t/o/tokenserver-HEAD/tokenserver/assignment/sqlnode/sql.py   tokenserver(Download)
import time
import traceback
from mozsvc.exceptions import BackendError
 
from sqlalchemy.sql import select, update, and_
            err = traceback.format_exc()
            logger.error(err)
            raise BackendError(str(exc))
 
    def get_user(self, service, email):
            # reject previously-seen client-state strings.
            if client_state == user['client_state']:
                raise BackendError('previously seen client-state string')
            if client_state in user['old_client_states']:
                raise BackendError('previously seen client-state string')
            res.close()
            if row is None:
                raise BackendError('unknown service: ' + service)
            self._cached_service_ids[service] = row.id
            return row.id

src/t/o/tokenserver-HEAD/tokenserver/assignment/memorynode.py   tokenserver(Download)
from tokenserver.assignment import INodeAssignment
 
from mozsvc.exceptions import BackendError
 
 
    def allocate_user(self, service, email, generation=0, client_state=''):
        if (service, email) in self._users:
            raise BackendError('user already exists: ' + email)
        user = {
            'email': email,
    def update_user(self, service, user, generation=None, client_state=None):
        if (service, user['email']) not in self._users:
            raise BackendError('unknown user: ' + user['email'])
        if generation is not None:
            user['generation'] = generation

src/s/y/syncserver-HEAD/syncserver/staticnode.py   syncserver(Download)
import time
import urlparse
from mozsvc.exceptions import BackendError
 
from sqlalchemy import Column, Integer, String, BigInteger, Index
            # reject previously-seen client-state strings.
            if client_state == user['client_state']:
                raise BackendError('previously seen client-state string')
            if client_state in user['old_client_states']:
                raise BackendError('previously seen client-state string')

src/m/o/mozsvc-0.7/mozsvc/storage/mcclient.py   mozsvc(Download)
 
import mozsvc
from mozsvc.exceptions import BackendError
 
 
            err = traceback.format_exc()
            self.logger.error(err)
            raise BackendError(str(err))
 
    def get(self, key):

src/s/e/server-syncstorage-HEAD/syncstorage/storage/sql/dbconnect.py   server-syncstorage(Download)
from sqlalchemy.dialects import postgresql
 
from mozsvc.exceptions import BackendError
 
from syncstorage.storage.sql import (queries_generic,
            err = traceback.format_exc()
            self.logger.error(err)
            raise BackendError(str(exc))
    return report_backend_errors_wrapper
 

src/w/i/wimms-0.3/wimms/sql.py   wimms(Download)
"""
import traceback
from mozsvc.exceptions import BackendError
 
from sqlalchemy.sql import select, update, and_
            err = traceback.format_exc()
            logger.error(err)
            raise BackendError(str(exc))
 
    #
            # unable to get a node
            res.close()
            raise BackendError('unable to get a node')
 
        node = str(one.node)

src/m/o/mozservices-HEAD/mozsvc/storage/mcclient.py   mozservices(Download)
 
import mozsvc
from mozsvc.exceptions import BackendError
 
 
            err = traceback.format_exc()
            self.logger.error(err)
            raise BackendError(str(err))
 
    def _encode_key(self, key):

src/a/p/appsync-HEAD/appsync/storage/sql.py   appsync(Download)
import vep
 
from mozsvc.exceptions import BackendError
from mozsvc.util import round_time, maybe_resolve_name
 
        err = traceback.format_exc()
        logger.error(err)
        raise BackendError(str(exc))
 
 

src/m/o/mozsvc-0.7/mozsvc/tweens.py   mozsvc(Download)
 
import mozsvc
from mozsvc.exceptions import BackendError
from mozsvc.middlewares import create_hash
 

src/m/o/mozservices-HEAD/mozsvc/tweens.py   mozservices(Download)
 
import mozsvc
from mozsvc.exceptions import BackendError
from mozsvc.middlewares import create_hash
 

  1 | 2  Next