(func: _t.Callable[[Exception], _t.Any])
| 145 | """Automatically add an error handler to the dash app.""" |
| 146 | |
| 147 | def _error(func: _t.Callable[[Exception], _t.Any]): |
| 148 | self.add_hook("error", func, priority=priority, final=final) |
| 149 | return func |
| 150 | |
| 151 | return _error |
| 152 |