No error bubbling?
See original GitHub issueHi, if an exception is thrown during an interactive action, such as a callback invoked by Canvas.on_mouse_down
, there seems to be no way of knowing this.
e.g.:
from ipycanvas import Canvas
def callback(*args):
raise ValueError("Invisible")
c = Canvas(size=(500, 500))
c.on_mouse_down(callback)
c
by contrast, errors in ipywidgets.Button
calls are reported in the jupyter lab log:
from ipywidgets import Button
b = Button(description='Hi')
def callback(*args):
raise ValueError("Invisible")
b.on_click(callback)
b
Is it possible to match this behaviour?
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
what's meant by bubbling? (Example) | Treehouse Community
If it isn't handled immediately, it jumps up the call stack, until it finds code to handle it (a try/catch for the appropriate...
Read more >Exception Bubbling in C# - TechNet Articles
An error can occur at almost any statement. Checking for all these errors becomes unbearably complex. Exception handling separates this logic.
Read more >ES6 Promise Errors not bubbling up as expected
Now I get what I expect, the error is not uncaught. But this seems counter to the whole idea that errors bubble up,...
Read more >How to avoid a bubbling error on the LSAT
A bubbling error is when one or more answers are incorrectly filled in for an answer key. This can happen if the test...
Read more >Put action is bubbling errors · Issue #1844 - GitHub
The Expected results. As I understand, in this case, error should not bubble up to saga. Environment information. redux-saga version - 1.0.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s my workaround:
Works great. Now my code is debugable.
that’s a really neat workaround, thanks @kenseehart