(exception)
| 75 | |
| 76 | |
| 77 | def exception_to_code_and_message(exception): |
| 78 | if isinstance(exception, AccessProhibitedException): |
| 79 | return 403, str(exception) |
| 80 | if isinstance(exception, MissingArgumentException): |
| 81 | return 400, str(exception) |
| 82 | if isinstance(exception, NotFoundException): |
| 83 | return 404, str(exception) |
| 84 | |
| 85 | return None, None |
| 86 | |
| 87 | |
| 88 | class BaseRequestHandler(tornado.web.RequestHandler): |
no outgoing calls
no test coverage detected