Automatically add an error handler to the dash app.
(self, priority: _t.Optional[int] = None, final: bool = False)
| 142 | return wrap |
| 143 | |
| 144 | def error(self, priority: _t.Optional[int] = None, final: bool = False): |
| 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 | |
| 153 | def callback( |
| 154 | self, *args, priority: _t.Optional[int] = None, final: bool = False, **kwargs |
no outgoing calls