You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before posting an issue here, please check the Dash community forum to see if the topic has already been discussed. The community forum is also great for implementation questions. When in doubt, please feel free to just post the issue here :)
Is your feature request related to a problem? Please describe.
Currently if I define on_error for both the Dash() class and a for a specific callback, the callback specific on_error overwrites the global on_error. It would be nice to have an option to chain these error handlers, so that exceptions raised from the callback specific on_error are passed on to the global on_error.
Example I can think of:
callback specific on_error: handles user incorrectly filling in data
global on_error: catches unexpected errors (ie. bugs) and notifies the developer
Describe the solution you'd like
Perhaps a bool argument to the callback() decorator that would enable passing uncaught exceptions from the local on_error to the global on_error, and the same argument to the Dash() class which would be used as a default for all callbacks?
Describe alternatives you've considered
Wrapping callback specific on_error in a try catch block and calling the global error handler manually.
Wrapping the body of a callback in a try catch block and calling the callback specific on_error manually.
I think both of these approaches are unnecessary boiler plate.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Thanks so much for your interest in Dash!
Before posting an issue here, please check the Dash community forum to see if the topic has already been discussed. The community forum is also great for implementation questions. When in doubt, please feel free to just post the issue here :)
Is your feature request related to a problem? Please describe.
Currently if I define
on_error
for both theDash()
class and a for a specific callback, the callback specificon_error
overwrites the globalon_error
. It would be nice to have an option to chain these error handlers, so that exceptions raised from the callback specificon_error
are passed on to the globalon_error
.Example I can think of:
Describe the solution you'd like
Perhaps a
bool
argument to thecallback()
decorator that would enable passing uncaught exceptions from the localon_error
to the globalon_error
, and the same argument to theDash()
class which would be used as a default for all callbacks?Describe alternatives you've considered
I think both of these approaches are unnecessary boiler plate.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: