(self, status_code, **kwargs)
| 2016 | raise PermissionError("not allowed") |
| 2017 | |
| 2018 | def write_error(self, status_code, **kwargs): |
| 2019 | if "exc_info" in kwargs: |
| 2020 | typ, value, tb = kwargs["exc_info"] |
| 2021 | if isinstance(value, PermissionError): |
| 2022 | self.set_status(403) |
| 2023 | self.write("PermissionError") |
| 2024 | return |
| 2025 | RequestHandler.write_error(self, status_code, **kwargs) |
| 2026 | |
| 2027 | def log_exception(self, typ, value, tb): |
| 2028 | if isinstance(value, PermissionError): |
nothing calls this directly
no test coverage detected