Example #1
0
 def errorfun(self, status, expstat):
     raise httplib.error("Stanbol HTTP status %s != %s"%(str(status),str(expstat)))
Example #2
0
 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.")