MCPcopy
hub / github.com/tornadoweb/tornado / get

Method get

tornado/test/web_test.py:2009–2016  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2007class ExceptionHandlerTest(SimpleHandlerTestCase):
2008 class Handler(RequestHandler):
2009 def get(self):
2010 exc = self.get_argument("exc")
2011 if exc == "http":
2012 raise HTTPError(410, "no longer here")
2013 elif exc == "zero":
2014 1 / 0
2015 elif exc == "permission":
2016 raise PermissionError("not allowed")
2017
2018 def write_error(self, status_code, **kwargs):
2019 if "exc_info" in kwargs:

Callers

nothing calls this directly

Calls 3

HTTPErrorClass · 0.90
PermissionErrorClass · 0.85
get_argumentMethod · 0.80

Tested by

no test coverage detected