示例#1
0
        def connectionRefusedEb(failure):
            self.debug('connection closed, %r', failure)
            self.debug(cfailure.getAllTracebacks(failure))

            failure.trap(error.ConnectionRefusedError)
            self.debug('connection refused')
            msg = 'Could not make a connection to CouchDB.'
            raise command.CommandError(msg)
示例#2
0
 def testSynthetic(self):
     e = client.RequestGenerationFailed([
         tfailure.Failure(ValueError()),
     ])
     f = tfailure.Failure(e)
     print failure.getAllTracebacks(f)