This is called to figure out if an error should be ignored or not as far as the teardown system is concerned. If this function returns ``True`` then the teardown handlers will not be passed the error. .. versionadded:: 0.10
(self, error: BaseException | None)
| 881 | return False |
| 882 | |
| 883 | def should_ignore_error(self, error: BaseException | None) -> bool: |
| 884 | """This is called to figure out if an error should be ignored |
| 885 | or not as far as the teardown system is concerned. If this |
| 886 | function returns ``True`` then the teardown handlers will not be |
| 887 | passed the error. |
| 888 | |
| 889 | .. versionadded:: 0.10 |
| 890 | """ |
| 891 | return False |
| 892 | |
| 893 | def redirect(self, location: str, code: int = 302) -> BaseResponse: |
| 894 | """Create a redirect response object. |