def errorfun(self, status, expstat): raise httplib.error("Stanbol HTTP status %s != %s"%(str(status),str(expstat)))
def get(self): # We can specify whether we want it to fail for testing purposes. if self.request.get("fail", False): raise httplib.error("This is a test failure.")