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)
def testSynthetic(self): e = client.RequestGenerationFailed([ tfailure.Failure(ValueError()), ]) f = tfailure.Failure(e) print failure.getAllTracebacks(f)